Boost logo

Boost :

From: Stefan Strasser (sstrasser_at_[hidden])
Date: 2005-04-26 17:29:17

Stefan Strasser schrieb:
> Eric Niebler schrieb:
>> 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,

I've written two small patches to do this:
against boost/config/compiler/

define BOOST_VARIADIC_MACROS if available
works with gcc and intel cc

the version numbers(3.3 for gcc, 7.0 for intel) are pessimistic guesses
from tests and internet posts.
against boost-sandbox/boost/foreach.hpp


up to 10 commas inside VAR, none inside COL


Stefan Strasser

Boost list run by bdawes at, gregod at, cpdaniel at, john at