Commit 8fdd20cd authored by silverweed's avatar silverweed

Overload parse() to accept an rvalue reference

parent 0a813539
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment