mirror of
https://github.com/boostorg/serialization.git
synced 2026-01-29 20:02:12 +00:00
Fixed catch by value warnings in tests
warning: catching polymorphic type 'class boost::archive::archive_exception' by value [-Wcatch-value=]
This commit is contained in:
@@ -69,7 +69,7 @@ int test_native_array(){
|
||||
ia >> boost::serialization::make_nvp("a_array", a_array1);
|
||||
ia >> boost::serialization::make_nvp("b_array", b_array1);
|
||||
}
|
||||
BOOST_CATCH (boost::archive::archive_exception ae){
|
||||
BOOST_CATCH (boost::archive::archive_exception const& ae){
|
||||
BOOST_CHECK(
|
||||
boost::archive::archive_exception::array_size_too_short
|
||||
== ae.code
|
||||
|
||||
Reference in New Issue
Block a user