Boost logo

Boost :

From: Michael Marcin (mmarcin_at_[hidden])
Date: 2007-09-12 20:02:58


Rene Rivera wrote:
> Tobias Schwinger wrote:
>> Solutions anyone?
>
> From the Boost.Config refactor proposal...
> <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?BoostConfig>
>
> // Microsoft Visual C++
> #if !defined (_MSC_FULL_VER)
> # define BOOST_CXX_MSVC_BUILD 0
> #else
> // how many digits does the build number have?
> //
> # if _MSC_FULL_VER / 10000 == _MSC_VER
> # define BOOST_CXX_MSVC_BUILD (_MSC_FULL_VER % 10000) // four digits
> # elif _MSC_FULL_VER / 100000 == _MSC_VER
> # define BOOST_CXX_MSVC_BUILD (_MSC_FULL_VER % 100000) // five digits
> # else
> # error "Cannot determine build number from _MSC_FULL_VER"
> # endif
> #endif
> #define BOOST_CXX_MSVC BOOST_VERSION_NUMBER( \
> _MSC_VER/100-6, \
> _MSC_VER%100, \
> BOOST_CXX_MSVC_BUILD)
>
> One should be able to use the _MSC_FULL_VER value.
>

There is also _MSC_BUILD starting in VS 2008 that can be used to
identify the minor build number.

http://tinyurl.com/ys99kr

- Michael Marcin


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