From 798524a771b1054f842673d9ef48dda4a80d947c Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Thu, 4 Aug 2022 08:13:18 +0200 Subject: [PATCH 1/2] Fix catch by value of polymorphic exception See also https://stackoverflow.com/questions/62030341/what-is-this-catching-polymorphic-type-x-by-value-wcatch-value --- src/Configuration.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Configuration.cxx b/src/Configuration.cxx index c4a7440..e4e07e6 100644 --- a/src/Configuration.cxx +++ b/src/Configuration.cxx @@ -74,7 +74,7 @@ void ConfigFile::load(const std::string path) if (boost::algorithm::ends_with(filename, suffix)) { try { boost::property_tree::ini_parser::read_ini(filename, dPtr->pt); - } catch (boost::property_tree::ini_parser::ini_parser_error perr) { + } catch (boost::property_tree::ini_parser::ini_parser_error const& perr) { std::stringstream ss; if (perr.line()) { ss << perr.message() << " in " << perr.filename() << " line " << perr.line(); @@ -113,7 +113,7 @@ void getValueSpecialization(void) vString = f.getValue(s); } -//template void ConfigFile::getValue(std::string, float&); +// template void ConfigFile::getValue(std::string, float&); // http://stackoverflow.com/questions/4586768/how-to-iterate-a-boost-property-tree string indent(int level) From 8fcdcaf904b539abfc3e7cde17cdb27f34c5a80d Mon Sep 17 00:00:00 2001 From: Sergio Date: Fri, 1 Nov 2024 09:01:40 +0100 Subject: [PATCH 2/2] Force CI rerun