Skip to content
Snippets Groups Projects
Commit dd3b0cbe authored by Steven Murray's avatar Steven Murray
Browse files

Changed catch(std::out_of_range) to catch(std::out_of_range &) in order to...

Changed catch(std::out_of_range) to catch(std::out_of_range &) in order to avoid the following type of compilation error:

../CTA/common/checksum/ChecksumBlob.hpp:145:18: error: catching polymorphic type ‘class std::out_of_range’ by value [-Werror=catch-value=]
     } catch(std::out_of_range) {
                  ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
parent 88a4a01f
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ public:
std::string at(ChecksumType type) const {
try {
return m_cs.at(type);
} catch(std::out_of_range) {
} catch(std::out_of_range &) {
std::stringstream ss;
ss << ChecksumTypeName.at(type) << " checksum not found. Checksum blob contents: "
<< *this;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment