From 22bd8eeb9d07596dfe07abd03e3685ecec64ae38 Mon Sep 17 00:00:00 2001 From: alandefreitas Date: Mon, 19 Aug 2024 00:23:04 -0300 Subject: [PATCH] docs: json::error_code is deprecated --- example/finicky/finicky.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/finicky/finicky.cpp b/example/finicky/finicky.cpp index 0d27f1dd0..f7d869ca1 100644 --- a/example/finicky/finicky.cpp +++ b/example/finicky/finicky.cpp @@ -30,7 +30,7 @@ namespace json = boost::json; namespace core = boost::core; json::value -read_json( std::istream& is, json::error_code& ec ) +read_json( std::istream& is, boost::system::error_code& ec ) { json::parse_options opt; opt.allow_comments = true; @@ -176,7 +176,7 @@ int main(int argc, char** argv) // Open config file std::fstream fin(argv[1]); CHECK(fin.good(), "Cannot open configuration file"); - json::error_code ec; + boost::system::error_code ec; json::value c = read_json(fin, ec); CHECK(!ec.failed(), "Cannot parse configuration file"); CHECK(c.is_object(), "Configuration file is not an object");