From cedc4539254cd63a5a1c408079ad7112a9dcc4ec Mon Sep 17 00:00:00 2001 From: Steven Murray <Steven.Murray@cern.ch> Date: Fri, 8 Feb 2019 15:35:32 +0100 Subject: [PATCH] =?UTF-8?q?Changed=20'catch=20(std::out=5Fof=5Frange)'=20t?= =?UTF-8?q?o=20'catch=20(std::out=5Fof=5Frange&)'=20in=20order=20to=20avoi?= =?UTF-8?q?d=20the=20error:=20catching=20polymorphic=20type=20=E2=80=98cla?= =?UTF-8?q?ss=20std::out=5Fof=5Frange=E2=80=99=20by=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scheduler/OStoreDB/OStoreDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/OStoreDB/OStoreDB.cpp b/scheduler/OStoreDB/OStoreDB.cpp index b49d7df4bd..b0406be5dc 100644 --- a/scheduler/OStoreDB/OStoreDB.cpp +++ b/scheduler/OStoreDB/OStoreDB.cpp @@ -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 (...) {} -- GitLab