📝 fix example
This commit is contained in:
parent
e9a845f08a
commit
52f5f3d29f
1 changed files with 6 additions and 0 deletions
|
@ -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()));
|
||||||
|
|
Loading…
Reference in a new issue