Boost logo

Boost :

From: Jaakko Jarvi (jajarvi_at_[hidden])
Date: 2003-12-03 17:20:41


On Wed, 3 Dec 2003, Douglas Paul Gregor wrote:

> On Wed, 3 Dec 2003, David Abrahams wrote:

> > >> > # if (_MSC_VER <= 1300)
> > >>
> > >> That's BOOST_MSVC, I hope?
> > >
> > > I don't know the etymology of these macros, but _MSC_VER is used
> > > throughout /boost/boost/config/compiler/visualc.hpp.
> > > The same file defines BOOST_MSVC as _MSC_VER.
> >
> > No! _MSC_VER comes from the compiler (and from lots of other
> > compilers which want to be able to compile the MFC headers). Use
> > BOOST_MSVC.
>
> I think Jaakko's right since he's using _MSC_VER from inside visualc.hpp,
> where the config system has already made sure that this is a _real_
> Visual C++, not an imposter. BOOST_MSVC needs to be used outside of this
> file, of course, and that's what I was reacting to.
>

Right. The first thing in visualc.hpp is

#define BOOST_MSVC _MSC_VER

but all tests in that file still use _MSC_VER,
so I just followed that convention.

  Jaakko


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