1
0
mirror of https://github.com/nlohmann/json synced 2024-12-13 04:50:10 +00:00
nlohmannjson/src
Nikita Ofitserov 09cda57309 Support moving from rvalues in an std::initializer_list
This commit works around an issue in std::initializer_list design.
By using a detail::json_ref proxy with a mutable value inside,
rvalue-ness of an input to list initializer is remembered and
used later to move from the proxy instead of copying.
2017-07-23 23:57:17 +03:00
..
json.hpp Support moving from rvalues in an std::initializer_list 2017-07-23 23:57:17 +03:00