From e9747c0143a678ac7e90f79806e990b9388434a2 Mon Sep 17 00:00:00 2001 From: Aaron Windsor Date: Fri, 19 Oct 2007 00:16:36 +0000 Subject: [PATCH] Un-asserted two function calls - this was causing the function calls to turn into no-ops when the example was compiled with debugging off. [SVN r40167] --- example/matching_example.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/example/matching_example.cpp b/example/matching_example.cpp index 156a889c..f1d47d95 100755 --- a/example/matching_example.cpp +++ b/example/matching_example.cpp @@ -70,7 +70,8 @@ int main() // 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 @@ int main() 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;