Skip to content

Commit

Permalink
overload parse() to accept an rvalue reference
Browse files Browse the repository at this point in the history
  • Loading branch information
silverweed committed Sep 19, 2015
1 parent 0a81353 commit 1beb6a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4470,6 +4470,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
Expand Down

0 comments on commit 1beb6a7

Please sign in to comment.