Boost logo

Boost :

From: Mark Rodgers (mark.rodgers_at_[hidden])
Date: 2000-06-26 13:07:15


> > I don't think this is needed any more because you are now doing gcc
> > the same way as Borland 5.5. AFAICT,
> >
> > #if !defined(BOOST_NO_OPERATORS_IN_NAMESPACE)
> > && !defined(BOOST_NO_USING_TEMPLATE)
> >
> > need only be
> >
> > #if !defined(BOOST_NO_OPERATORS_IN_NAMESPACE)
> >
> > because gcc requires operators and operators2 to be in the global
> > namespace as well.
>
> Actually it doesn't. I tested it with GCC as is ;)

As it is, it is in the global namespace. For GCC we define
BOOST_NO_OPERATORS_IN_NAMESPACE so the condition

#if !defined(BOOST_NO_OPERATORS_IN_NAMESPACE)
     && !defined(BOOST_NO_USING_TEMPLATE)
namespace boost
...

evaluates to false so operators and operators2 are NOT in boost.

There are two instances of BOOST_NO_USING_TEMPLATE and neither do
anything useful - the expression will already have been evaluated to
false before BOOST_NO_USING_TEMPLATE is considered, so I think we
should just remove it.

Mark


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