1
0
mirror of https://github.com/nlohmann/json synced 2024-11-26 22:00:07 +00:00

Overload parse() to accept an rvalue reference

This commit is contained in:
silverweed 2015-09-20 16:15:55 +02:00
parent 0a81353989
commit 8fdd20cdda

View File

@ -4471,6 +4471,11 @@ class basic_json
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