Directly return ostream
This commit is contained in:
parent
c49d83172f
commit
f17733b859
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue