
26 Apr
2005
26 Apr
'05
3:58 a.m.
Eric Niebler wrote:
Stefan Strasser wrote:
michael toksvig schrieb:
BOOST_FOREACH(pair<Key, Value> &p, some_map)
does not work, since the preprocessor just can't get over that first comma
this could be worked around with C99 variadic macros if available, something like:
Clever, but there is an ambiguity here. What is the relations of the arguments in BOOST_FOREACH2(a1,a2,a3)? Do a1 and a2 together make up the loop variable declaration, or do a2 and a3 together form the collection expression
Maybe you could use something like this: http://tinyurl.com/8s7ba Jonathan