1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-06 06:42:33 +03:00

📝 fix example

This commit is contained in:
Niels Lohmann
2020-05-12 16:27:55 +02:00
parent e9a845f08a
commit 52f5f3d29f

View File

@ -79,6 +79,12 @@ class sax_event_consumer : public json::json_sax_t
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
{
events.push_back("error: " + std::string(ex.what()));