Commit 07672da0 authored by Michael Haubenwallner's avatar Michael Haubenwallner

fix Document::Parse(const Ch*) for transcoding

To allow for an UTF16-Document to Parse(UTF8),
the Parse() argument has to be UTF8-compatible.
parent 292714e6
......@@ -1951,7 +1951,7 @@ public:
\param str Read-only zero-terminated string to be parsed.
*/
template <unsigned parseFlags, typename SourceEncoding>
GenericDocument& Parse(const Ch* str) {
GenericDocument& Parse(const typename SourceEncoding::Ch* str) {
RAPIDJSON_ASSERT(!(parseFlags & kParseInsituFlag));
GenericStringStream<SourceEncoding> s(str);
return ParseStream<parseFlags, SourceEncoding>(s);
......
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