Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/behaviortree_cpp/json_export.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ inline Expected<T> 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<T>();
if(!casted)
{
return nonstd::expected_lite::make_unexpected(casted.error());
return nonstd::make_unexpected(casted.error());
}
return *casted;
}
Expand Down
Loading