mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
Merge pull request #190 from BohdanBuinich/compatibility_with_new_boost_lib
Compatibility with boost-1.85.0
This commit is contained in:
commit
c1dde4e270
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user