From 68108466d5d0a72fa585b18bc800fdf8f89474c7 Mon Sep 17 00:00:00 2001 From: Jingliang Wang Date: Sat, 27 Jun 2020 19:37:06 -0700 Subject: [PATCH] fixed gcc-9 compile issue Signed-off-by: Jingliang Wang --- base/src/UtilityFunctions.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/src/UtilityFunctions.cc b/base/src/UtilityFunctions.cc index 089f31be..6e3eb18a 100644 --- a/base/src/UtilityFunctions.cc +++ b/base/src/UtilityFunctions.cc @@ -356,10 +356,10 @@ namespace Force { try { amount = stoul(size_text); } - catch (invalid_argument) { + catch (invalid_argument&) { // Handled below by checking if amount is 0. } - catch (out_of_range) { + catch (out_of_range&) { // Handled below by checking if amount is 0. } }