Fixed Variant::IsEmpty()

This commit is contained in:
Gunnar Beutner 2012-07-13 11:24:05 +02:00
parent 2450504382
commit eebd660d4f
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -105,7 +105,7 @@ public:
}
private:
mutable boost::variant<double, string, Object::Ptr> m_Value;
mutable boost::variant<boost::blank, double, string, Object::Ptr> m_Value;
};
}