Boost logo

Boost :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2007-09-12 19:12:23


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.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

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