mirror of
https://github.com/nlohmann/json.git
synced 2025-07-27 00:41:05 +03:00
Fixing assignement for iterator wrapper second, and adding unit test
This commit is contained in:
@ -7913,6 +7913,14 @@ class basic_json
|
||||
{
|
||||
return proxy.value();
|
||||
}
|
||||
|
||||
/// assignment operator (calls value())
|
||||
template<typename ValueType>
|
||||
iterator_value_property<ProxyType>& operator=(const ValueType& value)
|
||||
{
|
||||
proxy.value() = value;
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
/// helper class for iteration
|
||||
|
Reference in New Issue
Block a user