[preprocessor] error: macro "BOOST_PP_SEQ_ELEM_III"
I'm having a problem with the preprocessor and currently I'm stuck. I
tried to reduce the problem from my program as far as possible.
Why does this example compile with an error?:
#include
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
Now it works, Thanks Pete!
participants (2)
-
Peter Bartlett
-
Reimund Klemm