#6018 Fix "catch polymorphic type by value" error on Ubuntu 20.04.

This commit is contained in:
Kristian Bendiksen 2020-06-03 16:11:52 +02:00
parent f03e1b5f6b
commit 7fdb920b3b

View File

@ -106,25 +106,25 @@ TEST( DISABLED_HDFTests, BasicFileRead )
} // end of try block
catch ( H5::FileIException error ) // catch failure caused by the H5File operations
catch ( H5::FileIException& error ) // catch failure caused by the H5File operations
{
std::cout << error.getCDetailMsg();
}
catch ( H5::DataSetIException error ) // catch failure caused by the DataSet operations
catch ( H5::DataSetIException& error ) // catch failure caused by the DataSet operations
{
std::cout << error.getCDetailMsg();
}
catch ( H5::DataSpaceIException error ) // catch failure caused by the DataSpace operations
catch ( H5::DataSpaceIException& error ) // catch failure caused by the DataSpace operations
{
std::cout << error.getCDetailMsg();
}
catch ( H5::DataTypeIException error ) // catch failure caused by the DataSpace operations
catch ( H5::DataTypeIException& error ) // catch failure caused by the DataSpace operations
{
std::cout << error.getCDetailMsg();
}
}
#endif // USE_HDF5
#endif // USE_HDF5