Boost logo

Boost-Commit :

From: aaron.windsor_at_[hidden]
Date: 2007-10-18 20:16:37


Author: aaron_windsor
Date: 2007-10-18 20:16:36 EDT (Thu, 18 Oct 2007)
New Revision: 40167
URL: http://svn.boost.org/trac/boost/changeset/40167

Log:
Un-asserted two function calls - this was causing the function calls to turn into no-ops when the example was compiled with debugging off.
Text files modified:
   trunk/libs/graph/example/matching_example.cpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/libs/graph/example/matching_example.cpp
==============================================================================
--- trunk/libs/graph/example/matching_example.cpp (original)
+++ trunk/libs/graph/example/matching_example.cpp 2007-10-18 20:16:36 EDT (Thu, 18 Oct 2007)
@@ -70,7 +70,8 @@
   // matching returned is not actually a maximum cardinality matching
   // in the graph.
 
- assert(checked_edmonds_maximum_cardinality_matching(g, &mate[0]));
+ bool success = checked_edmonds_maximum_cardinality_matching(g, &mate[0]);
+ assert(success);
 
   std::cout << "In the following graph:" << std::endl << std::endl;
 
@@ -96,7 +97,8 @@
   add_edge(12,13,g);
   add_edge(16,17,g);
 
- assert(checked_edmonds_maximum_cardinality_matching(g, &mate[0]));
+ success = checked_edmonds_maximum_cardinality_matching(g, &mate[0]);
+ assert(success);
 
   std::cout << "In the following graph:" << std::endl << std::endl;
 


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