2009/8/4 Oliver Kania
Hello , I have a problem getting boost foreach to work with a vector of tuples of type tuple
: #define foreach BOOST_FOREACH .... vector
> l_listLeftLines; .... foreach (boost::tuple & i_pair, l_listLeftLines) { ..... } The visual studio compiler gives me the following :
1>d:\projects\software\lib_msvc\ptw2ddatalib20\source\ptwfieldcheckalgorithm.cpp(227) : warning C4002: too many actual parameters for macro 'BOOST_FOREACH' 1>d:\projects\software\lib_msvc\ptw2ddatalib20\source\ptwfieldcheckalgorithm.cpp(227) : error C2143: syntax error : missing ')' before '>'
..... and a long tail of more errors
best regards, Oliver
Hi,
Try with:
foreach ((boost::tuple