mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
💄 cleanup
This commit is contained in:
@ -82,7 +82,9 @@ class input_stream_adapter : public input_adapter_protocol
|
|||||||
auto res = sb.sbumpc();
|
auto res = sb.sbumpc();
|
||||||
// set eof manually, as we don't use the istream interface.
|
// set eof manually, as we don't use the istream interface.
|
||||||
if (res == EOF)
|
if (res == EOF)
|
||||||
|
{
|
||||||
is.clear(is.rdstate() | std::ios::eofbit);
|
is.clear(is.rdstate() | std::ios::eofbit);
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2131,7 +2131,9 @@ class input_stream_adapter : public input_adapter_protocol
|
|||||||
auto res = sb.sbumpc();
|
auto res = sb.sbumpc();
|
||||||
// set eof manually, as we don't use the istream interface.
|
// set eof manually, as we don't use the istream interface.
|
||||||
if (res == EOF)
|
if (res == EOF)
|
||||||
|
{
|
||||||
is.clear(is.rdstate() | std::ios::eofbit);
|
is.clear(is.rdstate() | std::ios::eofbit);
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user