Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73631 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2011-08-09 15:32:20


Author: jewillco
Date: 2011-08-09 15:32:20 EDT (Tue, 09 Aug 2011)
New Revision: 73631
URL: http://svn.boost.org/trac/boost/changeset/73631

Log:
Fixed vertex count computation for case where number of vertices does not fit into an int
Text files modified:
   trunk/boost/graph/grid_graph.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/graph/grid_graph.hpp
==============================================================================
--- trunk/boost/graph/grid_graph.hpp (original)
+++ trunk/boost/graph/grid_graph.hpp 2011-08-09 15:32:20 EDT (Tue, 09 Aug 2011)
@@ -697,7 +697,8 @@
     void precalculate() {
       m_num_vertices =
         std::accumulate(m_dimension_lengths.begin(),
- m_dimension_lengths.end(), 1,
+ m_dimension_lengths.end(),
+ vertices_size_type(1),
                         std::multiplies<vertices_size_type>());
 
       // Calculate number of edges in each dimension


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