mirror of
https://github.com/nlohmann/json.git
synced 2025-07-15 07:41:50 +03:00
Merge pull request #120 from silverweed/patch-1
Overload parse() to accept an rvalue reference
This commit is contained in:
@ -4468,6 +4468,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