From 84f64ba58a73a0898ad78ea239323942b63c6d51 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Tue, 24 Jun 2014 22:22:37 +0800 Subject: [PATCH] Adds GenericDocument::ParseStream() overload to make SourceEncoding optional https://github.com/pah/rapidjson/commit/77e5c6b1 --- include/rapidjson/document.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index b7f18bd..7757146 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -788,6 +788,11 @@ public: return *this; } + template + GenericDocument& ParseStream(InputStream& is) { + return ParseStream(is); + } + //! Parse JSON text from a mutable string. /*! \tparam parseFlags Combination of ParseFlag. \param str Mutable zero-terminated string to be parsed.