Boost logo

Boost :

From: Angus Leeming (angus.leeming_at_[hidden])
Date: 2005-10-14 03:34:15


Compiling the attached code with g++ 3.4.4 as
  g++ -Wundef -Iboost/cvs -o trial trial.cpp
produces a heap of warnings
  warning: "__BORLANDC__" is not defined
  warning: "_MSC_FULL_VER" is not defined
  warning: "__MWERKS__" is not defined

The warnings are produced by code like:
#if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3003))

and are, of course, silenced by:
#if defined(__MWERKS__) && \
    BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3003))

Grepping around the boost sources, I see that my 'fix' has been applied
about 70 times already in the 1260 uses of BOOST_WORKAROUND. Assuming that
the lack of consistency reflects only the size of the task, I've made a
patch applying the fix to Boost.Random. Chipping away at the block...

Hoping that this is useful,
Angus





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