Merge pull request #120 from silverweed/patch-1
Overload parse() to accept an rvalue reference
This commit is contained in:
commit
589dc2180a
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue