From df74e82f3069f6775eb0926117c6caccd48544e7 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Fri, 3 Aug 2001 16:33:45 +0000 Subject: [PATCH] added workaround for abs [SVN r10738] --- include/boost/graph/relax.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/boost/graph/relax.hpp b/include/boost/graph/relax.hpp index c8f46acb..494f8140 100644 --- a/include/boost/graph/relax.hpp +++ b/include/boost/graph/relax.hpp @@ -29,15 +29,20 @@ #define BOOST_GRAPH_RELAX_HPP #include -#include +#include // for numeric limits #include #include +#include // for abs +#ifdef BOOST_NO_STDC_NAMESPACE +namespace std { using ::abs; } +#endif + namespace boost { // warning: when weight of e is size_t and weight of e is // close to max of size_t, du + wuv will overflow. To avoid - // this, Be careful about the value of weight. If it is larger + // this, be careful about the value of weight. If it is larger // than the half of current max of the type, change the type of // weight to have more bytes.