From 52f5f3d29f782218e47141769c99d5badb4471cc Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 12 May 2020 16:27:55 +0200 Subject: [PATCH] :memo: fix example --- doc/examples/sax_parse.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/examples/sax_parse.cpp b/doc/examples/sax_parse.cpp index 69e8962c..82a99f7d 100644 --- a/doc/examples/sax_parse.cpp +++ b/doc/examples/sax_parse.cpp @@ -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()));