Reputation: 669
Is it possible convert #define Name Alex
to BOOST_PP_SEQ like (A)(l)(e)(x)
or BOOST_PP_TUPLE (A,l,e,x)
? And more useful for me ('A')('l')('e')('x')
or ('A','l','e','x')
respectively?
Upvotes: 1
Views: 440
Reputation: 18220
No, its not possible. You can't iterate over or split characters of a token in the preprocessor.
Upvotes: 1