Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-08-03 11:34:15


I've added the following code to the top of relax.hpp

#include <cstdlib> // for abs
#ifdef BOOST_NO_STDC_NAMESPACE
namespace std { using ::abs; }
#endif

As for numeric_limits, that was already taken care of by the include of
boost/limits.hpp.

Thanks,
Jeremy

On Thu, 2 Aug 2001, Rob Smallshire wrote:

> With MSVC6.0sp5 using the supplied standard library
> boost/graph/relax.hpp complains because abs() is not in namespace
> std:: on line 59 of the file. It also doesn't #include <cstdlib> or
> <cmath>, <limits> which I guess it should do (it used numeric_limits
> on the same line. The library may need an MS specific fix for this.
>
> Regards,
>
> Rob Smallshire
>
>
>
>
> Info: http://www.boost.org Unsubscribe: <mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>

----------------------------------------------------------------------
 Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
 Ph.D. Candidate, IU B'ton email: jsiek_at_[hidden]
 Summer Manager, AT&T Research phone: (973) 360-8185
----------------------------------------------------------------------


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