Commit 84f64ba5 authored by Milo Yip's avatar Milo Yip

Adds GenericDocument::ParseStream() overload to make SourceEncoding optional

https://github.com/pah/rapidjson/commit/77e5c6b1
parent 02673bec
......@@ -788,6 +788,11 @@ public:
return *this;
}
template <unsigned parseFlags, typename InputStream>
GenericDocument& ParseStream(InputStream& is) {
return ParseStream<parseFlags, Encoding, InputStream>(is);
}
//! Parse JSON text from a mutable string.
/*! \tparam parseFlags Combination of ParseFlag.
\param str Mutable zero-terminated string to be parsed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment