mirror of
https://github.com/nlohmann/json.git
synced 2025-06-12 15:29:17 +08:00
✅ add regression test #2824
This commit is contained in:
parent
2c030bac2c
commit
c7822840eb
@ -168,7 +168,7 @@ class sax_no_exception : public nlohmann::detail::json_sax_dom_parser<json>
|
|||||||
|
|
||||||
static bool parse_error(std::size_t /*position*/, const std::string& /*last_token*/, const json::exception& ex)
|
static bool parse_error(std::size_t /*position*/, const std::string& /*last_token*/, const json::exception& ex)
|
||||||
{
|
{
|
||||||
error_string = new std::string(ex.what());
|
error_string = new std::string(ex.what()); // NOLINT(cppcoreguidelines-owning-memory)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user