1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-27 00:41:05 +03:00

🔨 working on #367

Test cases succeed as expected, but the example in #367 is not fully
realized yet.
This commit is contained in:
Niels Lohmann
2017-05-10 12:06:24 +02:00
parent 962da00171
commit 2afbd33472
2 changed files with 54 additions and 4 deletions

View File

@ -7618,7 +7618,7 @@ class basic_json
JSON_DEPRECATED
friend std::istream& operator<<(basic_json& j, std::istream& i)
{
j = parser(input_adapter::create(i)).parse(true);
j = parser(input_adapter::create(i)).parse(false);
return i;
}
@ -7650,7 +7650,7 @@ class basic_json
*/
friend std::istream& operator>>(std::istream& i, basic_json& j)
{
j = parser(input_adapter::create(i)).parse(true);
j = parser(input_adapter::create(i)).parse(false);
return i;
}