From: Gunnar Beutner Date: Fri, 13 Jul 2012 09:24:05 +0000 (+0200) Subject: Fixed Variant::IsEmpty() X-Git-Tag: v0.0.1~253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eebd660d4f4c219e7aaf2de9daea3355fbd51c78;p=icinga2 Fixed Variant::IsEmpty() --- diff --git a/base/variant.cpp b/base/variant.cpp index 330989a74..dfddc6ca4 100644 --- a/base/variant.cpp +++ b/base/variant.cpp @@ -28,7 +28,7 @@ using namespace icinga; */ bool Variant::IsEmpty(void) const { - return (m_Value.empty()); + return (m_Value.type() == typeid(boost::blank)); } bool Variant::IsScalar(void) const diff --git a/base/variant.h b/base/variant.h index 4889518a5..7919f759f 100644 --- a/base/variant.h +++ b/base/variant.h @@ -105,7 +105,7 @@ public: } private: - mutable boost::variant m_Value; + mutable boost::variant m_Value; }; }