mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6018 Fix "catch polymorphic type by value" error on Ubuntu 20.04.
This commit is contained in:
parent
f03e1b5f6b
commit
7fdb920b3b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user