Skip to content

Commit

Permalink
fix ambiguous to_json
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Mar 26, 2024
1 parent e030c7e commit 56c6ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/behaviortree_cpp/json_export.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ inline void RegisterJsonDefinition()
\
inline void to_json(nlohmann::json& js, const Type& p) \
{ \
auto op = [&js](const char* name, auto* val) { to_json(js[name], *val); }; \
auto op = [&js](const char* name, auto* val) { js[name] = *val; }; \
_JsonTypeDefinition(const_cast<Type&>(p), op); \
js["__type"] = #Type; \
} \
Expand Down

0 comments on commit 56c6ffc

Please sign in to comment.