1.1 --- a/test/preflow_test.cc Tue Dec 20 17:44:38 2011 +0100
1.2 +++ b/test/preflow_test.cc Tue Dec 20 18:15:14 2011 +0100
1.3 @@ -2,7 +2,7 @@
1.4 *
1.5 * This file is a part of LEMON, a generic C++ optimization library.
1.6 *
1.7 - * Copyright (C) 2003-2009
1.8 + * Copyright (C) 2003-2010
1.9 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
1.10 * (Egervary Research Group on Combinatorial Optimization, EGRES).
1.11 *
1.12 @@ -95,6 +95,11 @@
1.13 PreflowType preflow_test(g, cap, n, n);
1.14 const PreflowType& const_preflow_test = preflow_test;
1.15
1.16 + const PreflowType::Elevator& elev = const_preflow_test.elevator();
1.17 + preflow_test.elevator(const_cast<PreflowType::Elevator&>(elev));
1.18 + PreflowType::Tolerance tol = const_preflow_test.tolerance();
1.19 + preflow_test.tolerance(tol);
1.20 +
1.21 preflow_test
1.22 .capacityMap(cap)
1.23 .flowMap(flow)
1.24 @@ -113,7 +118,7 @@
1.25 const FlowMap& fm = const_preflow_test.flowMap();
1.26 b = const_preflow_test.minCut(n);
1.27 const_preflow_test.minCutMap(cut);
1.28 -
1.29 +
1.30 ignore_unused_variable_warning(fm);
1.31 }
1.32