|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54278 - trunk/libs/graph/test
From: jewillco_at_[hidden]
Date: 2009-06-23 10:18:25
Author: jewillco
Date: 2009-06-23 10:18:24 EDT (Tue, 23 Jun 2009)
New Revision: 54278
URL: http://svn.boost.org/trac/boost/changeset/54278
Log:
Fixed min/max issue using patch from Michael; refs #3134
Text files modified:
trunk/libs/graph/test/mcgregor_subgraphs_test.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/graph/test/mcgregor_subgraphs_test.cpp
==============================================================================
--- trunk/libs/graph/test/mcgregor_subgraphs_test.cpp (original)
+++ trunk/libs/graph/test/mcgregor_subgraphs_test.cpp 2009-06-23 10:18:24 EDT (Tue, 23 Jun 2009)
@@ -199,8 +199,8 @@
v_iter != new_vertices.end(); ++v_iter) {
Vertex source_vertex = *v_iter;
- int edges_for_vertex = std::min((generator() % max_edges_per_vertex) + 1,
- (int)num_vertices(graph));
+ int edges_for_vertex = (std::min)((generator() % max_edges_per_vertex) + 1,
+ (int)num_vertices(graph));
while (edges_for_vertex > 0) {
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