Details
Description
Simple example from http://www.boost.org/doc/libs/1_60_0/doc/html/foreach.html#foreach.introduction.hello__world_ :
#include <string> #include <iostream> #include <boost/foreach.hpp> int main() { std::string hello( "Hello, world!" ); BOOST_FOREACH( char ch, hello ) { std::cout << ch; } return 0; }
behaviour of this macro looks like
for (...; ...; ...) if (...) { } else /* S121 */ for (...; ...; ...) // expansion // user code
Another example (SUPPORT-2601) :
#define DEBUG if (condition) print DEBUG("msg");
Attachments
Issue Links
- is related to
-
SUPPORT-2689 Loading...
-
SUPPORT-2691 Loading...
- relates to
-
SUPPORT-2217 Loading...