diff --git a/deps/geodynamix b/deps/geodynamix index 2a251f7..7917105 160000 --- a/deps/geodynamix +++ b/deps/geodynamix @@ -1 +1 @@ -Subproject commit 2a251f7f7c5c0e90f857f72fc52f0f6c3a8a58d2 +Subproject commit 791710592aa33ccd441a0adf5522d8e1bf81bfcd diff --git a/logic/configurationparser.cpp b/logic/configurationparser.cpp index 827d66b..2f88dfa 100644 --- a/logic/configurationparser.cpp +++ b/logic/configurationparser.cpp @@ -550,22 +550,22 @@ static std::vector read_pollutants(toml::node_view return result; } -static std::string read_string(const NamedSection& ns, std::string_view name) -{ - assert(ns.section.is_table()); - auto nodeValue = ns.section[name]; - - if (!nodeValue) { - throw RuntimeError("'{}' key not present in {} section", name, ns.name); - } - - if (!nodeValue.is_string()) { - throw RuntimeError("'{0:}' key value in '{1:}' section should be a quoted string (e.g. {0:} = \"value\")", name, ns.name); - } - - assert(nodeValue.value().has_value()); - return nodeValue.value().value(); -} +// static std::string read_string(const NamedSection& ns, std::string_view name) +// { +// assert(ns.section.is_table()); +// auto nodeValue = ns.section[name]; + +// if (!nodeValue) { +// throw RuntimeError("'{}' key not present in {} section", name, ns.name); +// } + +// if (!nodeValue.is_string()) { +// throw RuntimeError("'{0:}' key value in '{1:}' section should be a quoted string (e.g. {0:} = \"value\")", name, ns.name); +// } + +// assert(nodeValue.value().has_value()); +// return nodeValue.value().value(); +// } static std::string read_string(const NamedSection& ns, std::string_view name, std::string_view defaultValue) {