diff --git a/include/behaviortree_cpp/json_export.h b/include/behaviortree_cpp/json_export.h index 9274ad788..1d47b0877 100644 --- a/include/behaviortree_cpp/json_export.h +++ b/include/behaviortree_cpp/json_export.h @@ -114,12 +114,12 @@ inline Expected JsonExporter::fromJson(const nlohmann::json& source) const auto res = fromJson(source); if(!res) { - return nonstd::expected_lite::make_unexpected(res.error()); + return nonstd::make_unexpected(res.error()); } auto casted = res->first.tryCast(); if(!casted) { - return nonstd::expected_lite::make_unexpected(casted.error()); + return nonstd::make_unexpected(casted.error()); } return *casted; }