mirror of
https://github.com/nlohmann/json.git
synced 2025-08-06 15:36:12 +08:00
Directly return ostream
This commit is contained in:
parent
c49d83172f
commit
f17733b859
@ -1990,8 +1990,7 @@ class basic_json
|
||||
/// serialize to stream
|
||||
friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
|
||||
{
|
||||
o << j;
|
||||
return o;
|
||||
return o << j;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user