Skip to content

Commit

Permalink
Merge pull request #478 from haubi/master
Browse files Browse the repository at this point in the history
fix Document::Parse(const Ch*) for transcoding
  • Loading branch information
miloyip committed Nov 26, 2015
2 parents 292714e + 07672da commit 8ec389f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -1951,7 +1951,7 @@ class GenericDocument : public GenericValue<Encoding, Allocator> {
\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);
Expand Down

0 comments on commit 8ec389f

Please sign in to comment.