
"Martin Bonner" <martin.bonner@pitechnology.com> writes:
There is a third model - don't use the C++ preprocessor, but use a more general purpose text transformation tool like M4, or awk/perl/python, or a custom tool written with bison or boost::Spirit.
I'm not knocking the preprocessor library with that suggestion. An external tool would be no use for a library like boost where it is very difficult to control the compilation system. Furthermore, the heroics involved in implementing the boost preprocessor library mean that using it is remarkably simple.
I just wanted to point out that there is always another option.
Some of use started out using that option and after finding it to be inferior in a number of ways, switched to using the preprocessor library. -- Dave Abrahams Boost Consulting www.boost-consulting.com