mirror of
https://github.com/nlohmann/json.git
synced 2026-10-14 18:27:13 +00:00
♻️ replace EOF with std::char_traits<char>::eof()
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -105,7 +105,7 @@ class input_stream_adapter
|
||||
{
|
||||
auto res = sb->sbumpc();
|
||||
// set eof manually, as we don't use the istream interface.
|
||||
if (JSON_HEDLEY_UNLIKELY(res == EOF))
|
||||
if (JSON_HEDLEY_UNLIKELY(res == std::char_traits<char>::eof()))
|
||||
{
|
||||
is->clear(is->rdstate() | std::ios::eofbit);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user