Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is this json_ref? #1772

Closed
vinniefalco opened this issue Oct 3, 2019 · 1 comment
Closed

What is this json_ref? #1772

vinniefalco opened this issue Oct 3, 2019 · 1 comment

Comments

@vinniefalco
Copy link

Can someone please help me understand json_ref? C++ std::initializer_list is generally immutable but this looks like something that lets a JSON value take ownership of elements in an initializer list if they are constructed as rvalues? Is there any documentation on this? Or examples somewhere?

@nlohmann
Copy link
Owner

nlohmann commented Oct 5, 2019

It was introduced here: #663

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants