diff --git a/src/components/config.cpp b/src/components/config.cpp index b9359e8b..c002a1ac 100644 --- a/src/components/config.cpp +++ b/src/components/config.cpp @@ -63,7 +63,7 @@ void config::copy_inherited() { // Find and validate base section auto base_section = m_ptree.get_child_optional(inherit); - if (!base_section || base_section.value().empty()) { + if (base_section == boost::none) { throw value_error("[" + section.first + "." + KEY_INHERIT + "] invalid reference \"" + inherit + "\""); }