mirror of
https://github.com/nlohmann/json.git
synced 2025-07-31 10:24:23 +03:00
🐛 fixed a bug in the unget function
This commit is contained in:
@ -154,11 +154,6 @@ class parse_error : public exception
|
||||
|
||||
static std::string position_string(const position_t& pos)
|
||||
{
|
||||
if (pos.chars_read_total == 0)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
return " at line " + std::to_string(pos.lines_read + 1) +
|
||||
", column " + std::to_string(pos.chars_read_current_line);
|
||||
}
|
||||
|
Reference in New Issue
Block a user