
15 Jul
2005
15 Jul
'05
10:05 a.m.
"Paul Mensonides" <pmenso57@comcast.net> writes:
PY_DEFINE_CONSTANTS_NO_EXPANSION((foo)(bar) BOOST_PP_INTERCEPT_)
The trick here is to get the sequence inside the machinery in a way that allows the machinery to prevent it from expanding. That's the trailing 'INTERCEPT_ and the 'seq ## 0'. From there, it can be immediately processed with custom sequential iteration to make a new sequence with a argument/string pairs.
According to http://www.boost.org/libs/preprocessor/doc/ref/intercept.html there's no trailing underscore. Am I missing something? -- Dave Abrahams Boost Consulting www.boost-consulting.com