Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenericDocument::ParseStream: make SourceEncoding optional #13

Merged
merged 1 commit into from
Jun 25, 2014

Commits on Jun 25, 2014

  1. GenericDocument::ParseStream: make SourceEncoding optional

    The ParseStream() function current requires explicitly passing
    the SourceEncoding parameter as explicit template argument
    while the other Parse*() functions provide overloads to omit
    this parameter and use the document's own encoding by default.
    
    This patch adds the corresponding overload for ParseStream(),
    enabling the simple usage again:
    
      rapidjson::FileStream is(fp);
      rapidjson::Document   d;
      d.ParseStream<0>(is);
    pah committed Jun 25, 2014
    Configuration menu
    Copy the full SHA
    7fb82c2 View commit details
    Browse the repository at this point in the history