Commit 589dc218 authored by Niels's avatar Niels

Merge pull request #120 from silverweed/patch-1

Overload parse() to accept an rvalue reference
parents 4eac2952 8fdd20cd
......@@ -4468,6 +4468,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