💄 cleanup

pull/1357/head
Niels Lohmann 2018-11-09 21:10:32 +01:00
parent 35829928da
commit f80efd3954
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 4 additions and 0 deletions

View File

@ -82,7 +82,9 @@ class input_stream_adapter : public input_adapter_protocol
auto res = sb.sbumpc();
// set eof manually, as we don't use the istream interface.
if (res == EOF)
{
is.clear(is.rdstate() | std::ios::eofbit);
}
return res;
}

View File

@ -2131,7 +2131,9 @@ class input_stream_adapter : public input_adapter_protocol
auto res = sb.sbumpc();
// set eof manually, as we don't use the istream interface.
if (res == EOF)
{
is.clear(is.rdstate() | std::ios::eofbit);
}
return res;
}