Boost::Spirit: A BNF Parser Generator

The boost spirit library allows for direct translation of a BNF grammar into C++ code which generates a parser at compile time. The following example, from http://spirit.sourceforge.net/distrib/spirit_1_8_3/libs/spirit/doc/introduction.html truly does this concept more justice than I could: BNF Example:



Ireland is in My Blood

It’s been now more than a year since we got back from our trip to Ireland, and sometimes I just think about going back there. I don’t know really how to describe it, but I feel like the country is a part of me now. I’ve been to most of western Europe but Ireland, and particularly the Donegal region, has affected me than any other country I have been to. You can read about our trip here, if you want to.



Copying a File in C++, The Easy Way

Just a few days ago I spent way too long looking at the boost libraries to see if there was a way of adapting a std::fstream to an iterator type. I didn’t find what I was looking for and did what I wanted a completely different way.



Automatically Generating Templates with the Boost Preprocessor Metaprogramming Library

boost contains a preprocessor metaprogramming libary. What this means, simply, is that it is possible to write code which generates code. The full docs are here.



Templates in the Real World

Let’s say I’m doing some cryptography work. I’ve just received a signed message from another machine and I want to validate the signature. I have a few options:



BoostCon and More

I went to BoostCon two weeks ago and as such have a ton on my mind and a lot to blog about. Most notable are the Boost Spirit and Metaprogramming libraries. I also have been learning better how to put templates to use in the real world. I’ll start with an entry about templates, then move forward with reviewing my boost notes and blogging about them as I can.



Blogging the C++ Language: Cast Operators

Today I will be covering all 4 of the C++ cast operators.



Team National Review - Update

This page has been removed.



Blogging the C++ Language: const qualifier

The const qualifier defines an object as being constant. There are several uses for const:



Blogging the C++ Language: class keyword

The class keyword is used when declaring or defining a class or a templated class. For instance: