$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Stefan Strasser (sstrasser_at_[hidden])
Date: 2005-04-26 18:48:12
> 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:
> 
> http://www-user.uni-bremen.de/~strasser/config.patch
> 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.
> 
> http://www-user.uni-bremen.de/~strasser/foreach.patch
> against boost-sandbox/boost/foreach.hpp
> 
> BOOST_FOREACH(VAR,COL)
> 
> up to 10 commas inside VAR, none inside COL
> 
> 
> Regards,
> 
-- Stefan Strasser