Merge pull request #190 from BohdanBuinich/compatibility_with_new_boost_lib

Compatibility with boost-1.85.0
This commit is contained in:
Tristan Penman 2024-04-24 15:47:41 +10:00 committed by GitHub
commit c1dde4e270
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ const auto targetJson = R"({
int main() int main()
{ {
json::error_code ec; boost::system::error_code ec;
auto schemaDoc = json::parse(schemaJson, ec); auto schemaDoc = json::parse(schemaJson, ec);
if (ec) { if (ec) {
std::cerr << "Error parsing schema json: " << ec.message() << std::endl; 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 #if VALIJSON_USE_EXCEPTIONS
try { try {
#endif #endif
boost::json::error_code errorCode; boost::system::error_code errorCode;
boost::json::string_view stringView{file}; boost::json::string_view stringView{file};
document = boost::json::parse(stringView, errorCode); document = boost::json::parse(stringView, errorCode);
if (errorCode) { if (errorCode) {