-
Hello, Could someone who is familiar with the design confirm the validity of these findings? In the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, the https://github.com/nlohmann/json/blob/develop/include/nlohmann/json.hpp#L4223
The |
Beta Was this translation helpful? Give feedback.
Yes, the
json_value
object is contained instruct data
andjson_value::destroy()
is called indata
's destructor here:https://github.com/nlohmann/json/blob/develop/include/nlohmann/json.hpp#L4223
The
unique_ptr
is used in thecreate
function so that the memory is released if theT
constructor throws.