Move semantics when serializing to json #3977
Unanswered
Numendacil
asked this question in
Q&A
Replies: 1 comment
-
Seems that using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to define a custom
to_json()
that takes a rvalue reference of given object to avoid unnecessary copy when dealing with large string values? For exampleHave given try for the above code i found that it actually works, but is seemly undocumented, so I'm asking if this is the desired behavior, and also if similar mechanisms exist in
from_json
alsoBeta Was this translation helpful? Give feedback.
All reactions