Skip to content
Snippets Groups Projects
Unverified Commit 988077b2 authored by René Fritze's avatar René Fritze
Browse files

[test|la] fix catch-by-value warning

parent 694dc521
No related branches found
No related tags found
No related merge requests found
...@@ -181,7 +181,7 @@ struct VectorTest_{{T_NAME}} : public ::testing::Test ...@@ -181,7 +181,7 @@ struct VectorTest_{{T_NAME}} : public ::testing::Test
testvector_1.set_entry(dim-1, testvector_1_saved[dim-1]); testvector_1.set_entry(dim-1, testvector_1_saved[dim-1]);
for (size_t ii = 0; ii < dim; ++ii) for (size_t ii = 0; ii < dim; ++ii)
EXPECT_DOUBLE_OR_COMPLEX_EQ(std::real(testvector_1_saved.get_entry(ii)), testvector_1.get_entry(ii)); EXPECT_DOUBLE_OR_COMPLEX_EQ(std::real(testvector_1_saved.get_entry(ii)), testvector_1.get_entry(ii));
} catch(XT::Common::Exceptions::you_are_using_this_wrong) { } catch(XT::Common::Exceptions::you_are_using_this_wrong&) {
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment