Commit b78457b7 authored by Jay Sistar's avatar Jay Sistar

Making comparison operators const.

parent 00d841bf
......@@ -7897,14 +7897,14 @@ class basic_json
/// equal operator (calls key())
template<typename KeyType>
bool operator==(const KeyType& key)
bool operator==(const KeyType& key) const
{
return proxy.key() == key;
}
/// not equal operator (calls key())
template<typename KeyType>
bool operator!=(const KeyType& key)
bool operator!=(const KeyType& key) const
{
return proxy.key() != key;
}
......@@ -7930,14 +7930,14 @@ class basic_json
/// equal operator (calls value())
template<typename ValueType>
bool operator==(const ValueType& value)
bool operator==(const ValueType& value) const
{
return proxy.value() == value;
}
/// not equal operator (calls value())
template<typename ValueType>
bool operator!=(const ValueType& value)
bool operator!=(const ValueType& value) const
{
return proxy.value() != value;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment