TST: Do not catch exceptions by value

This commit is contained in:
Nikita Kniazev
2018-10-19 01:46:27 +03:00
committed by James E. King III
parent 86f05aa602
commit df1f33eb00
2 changed files with 5 additions and 5 deletions

View File

@ -631,7 +631,7 @@ test_ref()
boost::function2<int, int, int> f(ref(atc));
BOOST_CHECK(f(1, 3) == 4);
}
catch(std::runtime_error e) {
catch(std::runtime_error const&) {
BOOST_ERROR("Nonthrowing constructor threw an exception");
}
}