Boost logo

Boost :

From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2003-08-18 16:12:56


"Jens Maurer" <Jens.Maurer_at_[hidden]> escribió en el mensaje news:3F412064.EB219FD_at_gmx.net...
> Fernando Cacciola wrote:
> > Recently, Jens Maurer changed the guard at function scope
> > from:
> >
> > #ifndef __GNUC__
> > to
> > #ifndef BOOST_NO_STDC_NAMESPACE
> >
> > and honestly, I didn't looked much at it as I should.
> >
> > BOOST_NO_STDC_NAMESPACE is documented to relate to C names,
> > but swap is a C++ name so I don't think such macro
> > should be used here.
>
> The CVS change of optional.hpp:1.10 is definitely incorrect,
> because STDC_NAMESPACE refers to C names, not C++ names.
> Sorry.
>
> However, just reverting the patch will make gcc-3.3
> non-functional, because std::swap(int,int) (for example)
> is not going to be found.
>
> I've checked in a better fix to the main branch. optional_test.cpp
> now works with gcc 2.95, gcc 3.0 and gcc 3.3 on Linux.
> Please test on other platforms and (optionally) transport
> the fix to the 1.30.0 CVS branch.
>
> Jens Maurer
>
Actually, I had fix it for RC_1_30_0 already.
If the release goes OK, I think I should merge my fix back to the main trunk.

Thanks anyway.

Fernando Cacciola


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