Skip to content

Commit

Permalink
ad inline to groot2_protocol.h
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide authored Mar 28, 2023
1 parent 1e2cab4 commit dc20a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/behaviortree_cpp/loggers/groot2_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ struct Hook
};


void to_json(nlohmann::json& js, const Hook& bp) {
inline void to_json(nlohmann::json& js, const Hook& bp) {
js = nlohmann::json {
{"enabled", bp.enabled},
{"uid", bp.node_uid},
Expand All @@ -233,7 +233,7 @@ void to_json(nlohmann::json& js, const Hook& bp) {
};
}

void from_json(const nlohmann::json& js, Hook& bp) {
inline void from_json(const nlohmann::json& js, Hook& bp) {
js.at("enabled").get_to(bp.enabled);
js.at("uid").get_to(bp.node_uid);
js.at("once").get_to(bp.remove_when_done);
Expand Down

0 comments on commit dc20a5e

Please sign in to comment.