Skip to content

Commit

Permalink
Merge pull request #120 from silverweed/patch-1
Browse files Browse the repository at this point in the history
Overload parse() to accept an rvalue reference
  • Loading branch information
nlohmann committed Oct 3, 2015
2 parents 4eac295 + 8fdd20c commit 589dc21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 589dc21

Please sign in to comment.