Boost logo

Boost :

From: Björn Karlsson (Bjorn.Karlsson_at_[hidden])
Date: 2002-10-01 05:40:16


> From: Markus Schöpflin [mailto:markus.schoepflin_at_[hidden]]
> I think this still fails for MSVC6 with STLport because _YVALS will be
> defined anyway. (STLport does include some headers of the
> original STL.)
> This is why the config system checks for the presence of
> STLport _before_
> any other library.

Argh. Ok, assuming that only STLPort also defines _YVALS in this context,
this would work:

#if (defined(_MSC_VER) && (_MSC_VER <= 1300)) && ((!defined(_CPP_LIB_VER) &&
defined(_YVALS) && !defined(__SGI_STL_PORT)) || (defined(_CPPLIB_VER) &&
(_CPPLIB_VER < 306)))

And it's so elegant and readable, too. :-)

Bjorn Karlsson


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