mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
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:
parent
27f7e75ca1
commit
c54607119d
@ -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