mirror of
https://github.com/nlohmann/json.git
synced 2025-07-06 06:42:33 +03:00
📝 fix example
This commit is contained in:
@ -79,6 +79,12 @@ class sax_event_consumer : public json::json_sax_t
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool binary(binary_t& val) override
|
||||||
|
{
|
||||||
|
events.push_back("binary");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool parse_error(std::size_t position, const std::string& last_token, const json::exception& ex) override
|
bool parse_error(std::size_t position, const std::string& last_token, const json::exception& ex) override
|
||||||
{
|
{
|
||||||
events.push_back("error: " + std::string(ex.what()));
|
events.push_back("error: " + std::string(ex.what()));
|
||||||
|
Reference in New Issue
Block a user