提交 87746280 编写于 作者: A Aaron Burghardt

Added parse() for streams.

上级 2855c70c
......@@ -1716,6 +1716,12 @@ class basic_json
return parser(s).parse();
}
/// deserialize from stream
static basic_json parse(std::istream& i)
{
return parser(i).parse();
}
/// deserialize from stream
friend std::istream& operator>>(std::istream& i, basic_json& j)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册