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:

Blogging the C++ Language: catch keyword

The catch keyword is used to catch an exception after a try block. For instance:

Blogging the C++ Language: case keyword

The case keyword is used to label a section of a switch statement. For instance:

Blogging the C++ Language: break statement

The break statement exits from innermost loop (do, while, or for). For instance: