mirror of
https://github.com/boostorg/json.git
synced 2025-05-11 05:33:57 +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:
|
||||
os << jv.get_uint64();
|
||||
break;
|
||||
|
||||
case json::kind::int64:
|
||||
os << jv.get_int64();
|
||||
break;
|
||||
|
||||
case json::kind::double_:
|
||||
os << jv.get_double();
|
||||
os << jv;
|
||||
break;
|
||||
|
||||
case json::kind::bool_:
|
||||
|
Loading…
x
Reference in New Issue
Block a user