mirror of
https://github.com/nlohmann/json.git
synced 2026-10-19 12:38:12 +00:00
Overload parse() to accept an rvalue reference
This commit is contained in:
1 parent
0a81353989
commit
8fdd20cdda
1 file changed
+5
@@ -4471,6 +4471,11 @@ class basic_json
|
|||||||
return parser(i, cb).parse();
|
return parser(i, cb).parse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static basic_json parse(std::istream&& i, parser_callback_t cb = nullptr)
|
||||||
|
{
|
||||||
|
return parser(i, cb).parse();
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@brief deserialize from stream
|
@brief deserialize from stream
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user