
12 Mar
2009
12 Mar
'09
8:27 a.m.
Quoting Reimund Klemm
Why does this example compile with an error?:
#include
#include #include #define SEQ (b)(o)(o)(s)(t) #define i 0
int main( int argc, char* argv[]){ BOOST_PP_IF(i,BOOST_PP_SEQ_HEAD(BOOST_PP_SEQ_SUBSEQ(SEQ, 0, i)),0); return 0; }
You need to delay the evaluation of the branches. E.g.
#include