Boost logo

Boost :

From: Greg Chicares (chicares_at_[hidden])
Date: 2001-09-05 07:25:27


hankel_o_fung_at_[hidden] wrote:
>
> The VC namespace bug "abs is not a member of std" showed up
> when I tried the following johnson all-pairs shortest path test.
> I am using VC 6.0 SP5 + boost.graph 1.22.0. Any way to get around
> the problem?

The usual workaround is described in boost/config.h :

// BOOST_NO_STDC_NAMESPACE:
// [...] a workaround must be provided in the boost header:
//
// #include <cstdlib> // for abs
// #ifdef BOOST_NO_STDC_NAMESPACE
// namespace std { using ::abs; }
// #endif

Does that need to be added to the header?


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