mirror of
https://github.com/nlohmann/json.git
synced 2026-08-10 15:19:32 +00:00
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.