mirror of https://github.com/Icinga/icinga2.git
Fixed Variant::IsEmpty()
This commit is contained in:
parent
2450504382
commit
eebd660d4f
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue