1
0
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:
Jay Sistar
2017-05-10 17:53:27 +00:00
parent 6a656ed375
commit d6c78dacd8
3 changed files with 738 additions and 0 deletions

View File

@ -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