Skip to content

Commit

Permalink
Merge pull request #85 from ahamez/master
Browse files Browse the repository at this point in the history
Avoid warning with Xcode's clang
  • Loading branch information
nlohmann committed Jun 8, 2015
2 parents adc065d + f17733b commit d3b0f20
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -1983,15 +1983,14 @@ class basic_json
o.width(0);

// do the actual serialization
j.dump(o, prettyPrint, indentation);
j.dump(o, prettyPrint, static_cast<int>(indentation));
return o;
}

/// serialize to stream
friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
{
o << j;
return o;
return o << j;
}


Expand Down

0 comments on commit d3b0f20

Please sign in to comment.