📝 fixed documentation #745
This commit is contained in:
parent
b05ea3de55
commit
1a66527dca
3 changed files with 4 additions and 2 deletions
|
@ -18,7 +18,7 @@ int main()
|
||||||
|
|
||||||
// create JSON value and read the serialization from the stream
|
// create JSON value and read the serialization from the stream
|
||||||
json j;
|
json j;
|
||||||
j << ss;
|
ss >> j;
|
||||||
|
|
||||||
// serialize JSON
|
// serialize JSON
|
||||||
std::cout << std::setw(2) << j << '\n';
|
std::cout << std::setw(2) << j << '\n';
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<a target="_blank" href="https://wandbox.org/permlink/doaPmtdJ277jNm9C"><b>online</b></a>
|
<a target="_blank" href="https://wandbox.org/permlink/atomVJKVgMTIh1iT"><b>online</b></a>
|
|
@ -12818,6 +12818,7 @@ class basic_json
|
||||||
future version of the library. Please use
|
future version of the library. Please use
|
||||||
@ref operator<<(std::ostream&, const basic_json&)
|
@ref operator<<(std::ostream&, const basic_json&)
|
||||||
instead; that is, replace calls like `j >> o;` with `o << j;`.
|
instead; that is, replace calls like `j >> o;` with `o << j;`.
|
||||||
|
@since version 1.0.0; deprecated since version 3.0.0
|
||||||
*/
|
*/
|
||||||
JSON_DEPRECATED
|
JSON_DEPRECATED
|
||||||
friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
|
friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
|
||||||
|
@ -13001,6 +13002,7 @@ class basic_json
|
||||||
future version of the library. Please use
|
future version of the library. Please use
|
||||||
@ref operator>>(std::istream&, basic_json&)
|
@ref operator>>(std::istream&, basic_json&)
|
||||||
instead; that is, replace calls like `j << i;` with `i >> j;`.
|
instead; that is, replace calls like `j << i;` with `i >> j;`.
|
||||||
|
@since version 1.0.0; deprecated since version 3.0.0
|
||||||
*/
|
*/
|
||||||
JSON_DEPRECATED
|
JSON_DEPRECATED
|
||||||
friend std::istream& operator<<(basic_json& j, std::istream& i)
|
friend std::istream& operator<<(basic_json& j, std::istream& i)
|
||||||
|
|
Loading…
Reference in a new issue