Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-08-14 09:12:38


David Abrahams wrote:
> "Peter Dimov" <pdimov_at_[hidden]> writes:
>
>> Fernando Cacciola wrote:
>>> Most problems related to swap ocurr with GCC>3.3 and VC==6.0
>>> It appears that this problem ocurrs both with 1.30.0 and the current
>>> rc 1.30.2
>>
>> What's so surprising here? Everything fails exactly as it should.
>> 1.30 has
>>
>> #ifndef __GNUC__
>> using std::swap;
>> #endif
>>
>> and hence should fail on every non-broken GCC.
>>
>> HEAD has
>>
>> #ifndef BOOST_NO_STDC_NAMESPACE
>> using std::swap;
>> #endif
>>
>> instead and hence should fail on every BOOST_NO_STDC_NAMESPACE
>> compiler that isn't a broken GCC.
>
> Are you suggesting these should all be replaced with simply:
>
> using std::swap;
>
> ??

I don't know what was the original motivation for #ifdef-ing the using
declaration, but my g++ 2.95.3 seems to eat it just fine, if this is any
indication.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk