diff -r 0759d974de81 -r 4add05447ca0 test/lp_test.cc --- a/test/lp_test.cc Sun Jan 05 22:24:56 2014 +0100 +++ b/test/lp_test.cc Tue Apr 14 08:39:40 2015 +0200 @@ -20,7 +20,7 @@ #include #include "test_tools.h" #include - +#include #include #ifdef LEMON_HAVE_GLPK @@ -47,12 +47,22 @@ int countCols(LpBase & lp) { int count=0; for (LpBase::ColIt c(lp); c!=INVALID; ++c) ++count; +#ifdef LEMON_CXX11 + int cnt = 0; + for(auto c: lp.cols()) { cnt++; ::lemon::ignore_unused_variable_warning(c); } + check(count == cnt, "Wrong STL iterator"); +#endif return count; } int countRows(LpBase & lp) { int count=0; for (LpBase::RowIt r(lp); r!=INVALID; ++r) ++count; +#ifdef LEMON_CXX11 + int cnt = 0; + for(auto r: lp.rows()) { cnt++; ::lemon::ignore_unused_variable_warning(r); } + check(count == cnt, "Wrong STL iterator"); +#endif return count; }