diff --git a/linear/tests/testGaussianFactor.cpp b/linear/tests/testGaussianFactor.cpp index 079066d47..0db314800 100644 --- a/linear/tests/testGaussianFactor.cpp +++ b/linear/tests/testGaussianFactor.cpp @@ -714,11 +714,11 @@ TEST(GaussianFactor, permuteWithInverse) // todo: fix this!!! VariableIndex should not hold slots for(Index j=0; j::mapped_factor_type& factor_pos, actualIndex[j]) { + BOOST_FOREACH( GaussianVariableIndex<>::mapped_factor_type& factor_pos, actualIndex[j]) { factor_pos.variablePosition = numeric_limits::max(); } } for(Index j=0; j::mapped_factor_type& factor_pos, expectedIndex[j]) { + BOOST_FOREACH( GaussianVariableIndex<>::mapped_factor_type& factor_pos, expectedIndex[j]) { factor_pos.variablePosition = numeric_limits::max(); } } CHECK(assert_equal(expectedIndex, actualIndex));