Merge pull request #120 from silverweed/patch-1

Overload parse() to accept an rvalue reference
This commit is contained in:
Niels 2015-10-03 10:43:16 +02:00
commit 589dc2180a

View file

@ -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