1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-10 22:00:59 +03:00

Directly return ostream

This commit is contained in:
Alexandre Hamez
2015-06-08 11:39:32 +02:00
parent c49d83172f
commit f17733b859

View File

@ -1990,8 +1990,7 @@ class basic_json
/// serialize to stream /// serialize to stream
friend std::ostream& operator>>(const basic_json& j, std::ostream& o) friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
{ {
o << j; return o << j;
return o;
} }