From eebd660d4f4c219e7aaf2de9daea3355fbd51c78 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 13 Jul 2012 11:24:05 +0200 Subject: [PATCH] Fixed Variant::IsEmpty() --- base/variant.cpp | 2 +- base/variant.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }; }