Topilski Alexandr
Topilski Alexandr

Reputation: 669

Convert defines to BOOST_PP_TUPLE or BOOST_PP_SEQ

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

Answers (1)

Paul Fultz II
Paul Fultz II

Reputation: 18220

No, its not possible. You can't iterate over or split characters of a token in the preprocessor.

Upvotes: 1

Related Questions