Commit 0e8876b7 authored by Steven Murray's avatar Steven Murray
Browse files

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

Changed 'catch (std::out_of_range)' to 'catch (std::out_of_range&)' in order to avoid the error: catching polymorphic type ‘class std::out_of_range’ by value
parent 5499ea97
......@@ -1221,7 +1221,7 @@ void OStoreDB::populateRepackRequestsStatistics(RootEntry & re, SchedulerDatabas
(*fet)->wait();
try {
stats.at(req.getInfo().status)++;
} catch (std::out_of_range) {
} catch (std::out_of_range&) {
stats[req.getInfo().status] = 1;
}
} catch (...) {}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment