A short note to let you know about a long-missed C++ feature you can now use.
Since gcc 4.4 (21 April 2009) you can now skip giving the types of variables that you initialize. Do you remember the old macro
#define foreach(i, c) for (typeof((c).begin()) i = (c).begin(); i != (c).end(); ++i)
? Well, you can now write
#define foreach(i, c) for (auto i = (c).begin(); i != (c).end(); ++i)
In fact, since the definition is shorter now, you might even consider ditching the macro altogether. After all, macros cause bugs that take much time to track down.
Edit: Oh, yeah. I forgot to mention that
auto will be a standard C++ feature, while
typeof is a GNU extension.