Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-11-25 19:57:21


At 02:25 PM 11/25/2002, Gennaro Prota wrote:

>A question about BOOST_COMPILER_VERSION:
>
>as far as I can see from the release 1.29 files, that macro is only
>defined for VC++ and Metrowerks C++. That's acceptable for me because,
>I suppose, they are the only compilers where the "end user" version
>number is not immediately obvious from the value of the corresponding
>predefined macro (_MSC_VER = 1200 -> 6.0, not 1.2 etc.). But I'm a
>little surprised that BOOST_COMPILER_VERSION uses floating point
>constants, because that in fact prevents its use in preprocessing
>directives. Is it really the intent that the macro is used, e.g., for
>stringize only and not for #if tests and the like?

Yes. AFAIK, it was just intended for that purpose. It really should be
#undef'ed after the stringize use.

--Beman


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