mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +02:00
Implement the assignment operator for the Value class
This commit is contained in:
parent
bb393a9d4f
commit
4d25a2cb22
@ -99,6 +99,12 @@ std::istream& icinga::operator>>(std::istream& stream, Value& value)
|
||||
return stream;
|
||||
}
|
||||
|
||||
Value& Value::operator=(const Value& other)
|
||||
{
|
||||
m_Value = other.m_Value;
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool Value::operator==(bool rhs) const
|
||||
{
|
||||
return *this == Value(rhs);
|
||||
|
@ -111,6 +111,8 @@ public:
|
||||
operator double(void) const;
|
||||
operator String(void) const;
|
||||
|
||||
Value& operator=(const Value& other);
|
||||
|
||||
bool operator==(bool rhs) const;
|
||||
bool operator!=(bool rhs) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user