Switched to using C++11. Removed some pre-C++11 workarounds such as the Foreach macro and the safe_bool class.
Renamed cppversion.h to types.h. Added complex.h which defines complex literals and operators for complex numbers, for example, 1+4_i == Complex(1,4).
Replaced many typedef statements with using statements.