fix(config): Boost error

Ref #208
This commit is contained in:
Michael Carlberg 2016-12-01 13:00:35 +01:00
parent 111bfc58e9
commit 0ef2615af2

View File

@ -63,7 +63,7 @@ void config::copy_inherited() {
// Find and validate base section // Find and validate base section
auto base_section = m_ptree.get_child_optional(inherit); 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 + "\""); throw value_error("[" + section.first + "." + KEY_INHERIT + "] invalid reference \"" + inherit + "\"");
} }