mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user