|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72059 - trunk/boost/geometry/util
From: barend.gehrels_at_[hidden]
Date: 2011-05-21 08:06:14
Author: barendgehrels
Date: 2011-05-21 08:06:14 EDT (Sat, 21 May 2011)
New Revision: 72059
URL: http://svn.boost.org/trac/boost/changeset/72059
Log:
Fix for gcc (abs vs std::abs)
Text files modified:
trunk/boost/geometry/util/math.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/geometry/util/math.hpp
==============================================================================
--- trunk/boost/geometry/util/math.hpp (original)
+++ trunk/boost/geometry/util/math.hpp 2011-05-21 08:06:14 EDT (Sat, 21 May 2011)
@@ -49,7 +49,7 @@
// See http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.17,
// FUTURE: replace by some boost tool or boost::test::close_at_tolerance
Type const epsilon = std::numeric_limits<TypeForEpsilon>::epsilon();
- return abs(a - b) <= epsilon * abs(a);
+ return std::abs(a - b) <= epsilon * std::abs(a);
}
};
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk