test/preflow_test.cc
changeset 803 1b89e29c9fc7
parent 585 65fbcf2f978a
child 877 141f9c0db4a3
     1.1 --- a/test/preflow_test.cc	Thu Dec 10 17:05:35 2009 +0100
     1.2 +++ b/test/preflow_test.cc	Thu Dec 10 17:18:25 2009 +0100
     1.3 @@ -94,6 +94,11 @@
     1.4              ::Create PreflowType;
     1.5    PreflowType preflow_test(g, cap, n, n);
     1.6    const PreflowType& const_preflow_test = preflow_test;
     1.7 +  
     1.8 +  const PreflowType::Elevator& elev = const_preflow_test.elevator();
     1.9 +  preflow_test.elevator(const_cast<PreflowType::Elevator&>(elev));
    1.10 +  PreflowType::Tolerance tol = const_preflow_test.tolerance();
    1.11 +  preflow_test.tolerance(tol);
    1.12  
    1.13    preflow_test
    1.14      .capacityMap(cap)