Skip to content

Commit

Permalink
Added parse() for streams.
Browse files Browse the repository at this point in the history
  • Loading branch information
aburgh committed Mar 1, 2015
1 parent 2855c70 commit 8774628
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 8774628

Please sign in to comment.