Skip to content

Commit

Permalink
docs: json::error_code is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Aug 20, 2024
1 parent d1f16a9 commit 22bd8ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/finicky/finicky.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 22bd8ee

Please sign in to comment.