From 07672da09815eefba4db31c538dc6590672f21f6 Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Wed, 25 Nov 2015 19:45:47 +0100 Subject: [PATCH] fix Document::Parse(const Ch*) for transcoding To allow for an UTF16-Document to Parse(UTF8), the Parse() argument has to be UTF8-compatible. --- include/rapidjson/document.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 8da86ab..1ee4fb6 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -1951,7 +1951,7 @@ public: \param str Read-only zero-terminated string to be parsed. */ template - GenericDocument& Parse(const Ch* str) { + GenericDocument& Parse(const typename SourceEncoding::Ch* str) { RAPIDJSON_ASSERT(!(parseFlags & kParseInsituFlag)); GenericStringStream s(str); return ParseStream(s);