Compatibility with boost-1.85.0

Starting from boost version 1.85.0, json::error_code is now deprecated

Changes added here:
bacc644f93
This commit is contained in:
BohdanBuinich 2024-04-23 01:08:04 +03:00
parent 27f7e75ca1
commit c54607119d
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ const auto targetJson = R"({
int main()
{
json::error_code ec;
boost::system::error_code ec;
auto schemaDoc = json::parse(schemaJson, ec);
if (ec) {
std::cerr << "Error parsing schema json: " << ec.message() << std::endl;

View File

@ -23,7 +23,7 @@ inline bool loadDocument(const std::string &path, boost::json::value &document)
#if VALIJSON_USE_EXCEPTIONS
try {
#endif
boost::json::error_code errorCode;
boost::system::error_code errorCode;
boost::json::string_view stringView{file};
document = boost::json::parse(stringView, errorCode);
if (errorCode) {