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 :

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

Does that need to be added to the header?

Boost list run by bdawes at, gregod at, cpdaniel at, john at