Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2003-10-28 10:35:27


> Can anybody explain the reason for the following lines in
> boost/config/platform/macos.hpp?
>
>
> # ifndef __APPLE_CC__
>
> // GCC strange "ignore std" mode works better if you pretend everything
> // is in the std namespace, for the most part.
>
> # define BOOST_NO_STDC_NAMESPACE
> # endif
>
>
> With this BOOST_NO_STDC_NAMESPACE some parts of ublas fail to compile
> under MacOS if a non-Apple GNU compiler such as gcc-3.3.2 is used. Why
> is BOOST_NO_STDC_NAMESPACE defined on MacOS for non-Apple gcc
> compilers?

No idea, but it looks wrong for gcc3 series compilers in any case...

would:

# if (__GNUC__ < 3) && !defined( __APPLE_CC__)

be any better?

John.


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