• Nikita Ofitserov's avatar
    Support moving from rvalues in an std::initializer_list · 09cda573
    Nikita Ofitserov authored
    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.
    09cda573
json.hpp 484 KB