From 0ef2615af2bf00e10b34ac7b6e9200c4b68469ed Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Thu, 1 Dec 2016 13:00:35 +0100 Subject: [PATCH] fix(config): Boost error Ref #208 --- src/components/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 + "\""); }