[preprocessor] Comparing strings in BOOST_PP_NOT_EQUAL
14 Jul
2008
14 Jul
'08
5:21 p.m.
Hi! I'm developing with preprocessor a class generator, that generates the wrapper classes needed by boost.python when you want to derive in python from polymorph c++-base classes. I would need a Macro that expands to "return" if its argument is not void. I tried the following, but that obiously does not work: #define Return(type) \ BOOST_PP_EXPR_IF(BOOST_PP_NOT_EQUAL(type, void), return) I made a workaround by adding an integer value to my Array that defines the methods signature. But that is redundant. Is there a way to achieve the behaviour above?
5968
Age (days ago)
5968
Last active (days ago)
0 comments
1 participants
participants (1)
-
Maximilian Matthe