mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
fixed #306
This commit is contained in:
@ -7889,7 +7889,7 @@ class basic_json
|
||||
const auto offset_cursor = m_cursor - m_start;
|
||||
|
||||
// no stream is used or end of file is reached
|
||||
if (m_stream == nullptr or not * m_stream)
|
||||
if (m_stream == nullptr or m_stream->eof())
|
||||
{
|
||||
// copy unprocessed characters to line buffer
|
||||
m_line_buffer.clear();
|
||||
|
Reference in New Issue
Block a user