mirror of
https://github.com/boostorg/function.git
synced 2025-07-04 00:06:31 +02:00
TST: Do not catch exceptions by value
This commit is contained in:
committed by
James E. King III
parent
86f05aa602
commit
df1f33eb00
@ -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");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user