test/preflow_test.cc
changeset 1095 ad40f7d32846
parent 1008 d216e1c8b3fa
parent 1083 3e711ee55d31
     1.1 --- a/test/preflow_test.cc	Fri Aug 09 11:07:27 2013 +0200
     1.2 +++ b/test/preflow_test.cc	Sun Aug 11 15:28:12 2013 +0200
     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 @@ -96,6 +96,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 @@ -114,7 +119,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    ::lemon::ignore_unused_variable_warning(fm);
    1.31  }
    1.32