
28 Jun
2006
28 Jun
'06
8:05 a.m.
Paul Mensonides wrote: [snip]
Token-pasting must result in a single preprocessing token. So, there are a very limited few things that you can paste with '-'. In particular, '-VARIANT' is two pp-tokens, so the diagnostic is correct. For what you want to do below, token-pasting isn't necessary. Just having...
#define NAME MODULE-VARIANT
BOOST_PP_STRINGIZE(NAME) // or: BOOST_PP_STRINGIZE(MODULE-VARIANT)
...should be sufficient.
As simple as that ... ;-) Thanks! // Johan