mirror of
https://github.com/boostorg/json.git
synced 2025-05-12 06:01:41 +00:00
Use the library's operator
```cpp std::ostream &boost::json::operator<<(std::ostream &os, const boost::json::value &jv) ``` for output instead of jv.getXYZ() with std::ostream's operator <<
This commit is contained in:
parent
ee01580cfd
commit
740dbaa7a6
@ -104,15 +104,9 @@ pretty_print( std::ostream& os, json::value const& jv, std::string* indent = nul
|
|||||||
}
|
}
|
||||||
|
|
||||||
case json::kind::uint64:
|
case json::kind::uint64:
|
||||||
os << jv.get_uint64();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case json::kind::int64:
|
case json::kind::int64:
|
||||||
os << jv.get_int64();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case json::kind::double_:
|
case json::kind::double_:
|
||||||
os << jv.get_double();
|
os << jv;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case json::kind::bool_:
|
case json::kind::bool_:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user