Tips and Tricks
Using Pi in C++ programs
M_PI becomes equal to the value 3.1415....
Use C++ style includes for standard C include files
<cmath> instead of
<cstdio> instead of
<stdio.h> and so on.
This meant to take care of C definitions which may conflict with C++.
- Fast Delegate Dealing with pointers to class methods. (beginners beware)
Improves on boost::function. You can also use someting like
template<class T> bool RMINFC(T* const instance, double (T::*F)(double) const,....