Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74075 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2011-08-26 13:33:03


Author: jewillco
Date: 2011-08-26 13:33:02 EDT (Fri, 26 Aug 2011)
New Revision: 74075
URL: http://svn.boost.org/trac/boost/changeset/74075

Log:
Added parentheses around call to numeric_limits::max; fixes #5813
Text files modified:
   trunk/boost/graph/relax.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/graph/relax.hpp
==============================================================================
--- trunk/boost/graph/relax.hpp (original)
+++ trunk/boost/graph/relax.hpp 2011-08-26 13:33:02 EDT (Fri, 26 Aug 2011)
@@ -24,7 +24,7 @@
     {
       const T inf;
 
- closed_plus() : inf(std::numeric_limits<T>::max()) { }
+ closed_plus() : inf((std::numeric_limits<T>::max)()) { }
       closed_plus(T inf) : inf(inf) { }
 
       T operator()(const T& a, const T& b) const {


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