mirror of
https://github.com/nlohmann/json.git
synced 2025-07-27 00:41:05 +03:00
🔨 trying to fix #367
Code from https://stackoverflow.com/a/44503794/266378 which is hopefully working with MSVC.
This commit is contained in:
@ -8862,7 +8862,8 @@ class basic_json
|
||||
// We initially read a lot of characters into the buffer, and we
|
||||
// may not have processed all of them. Therefore, we need to
|
||||
// "rewind" the stream after the last processed char.
|
||||
is.seekg(start_position + static_cast<std::streamoff>(processed_chars));
|
||||
is.seekg(start_position);
|
||||
is.ignore(processed_chars);
|
||||
// clear stream flags
|
||||
is.clear();
|
||||
}
|
||||
|
Reference in New Issue
Block a user