diff --git a/include/behaviortree_cpp/basic_types.h b/include/behaviortree_cpp/basic_types.h index 706e0c61d..f5e2012a4 100644 --- a/include/behaviortree_cpp/basic_types.h +++ b/include/behaviortree_cpp/basic_types.h @@ -73,6 +73,7 @@ template inline T convertFromString(StringView /*str*/) { static_assert(true, "This template specialization of convertFromString doesn't exist"); + return T(); } template <> @@ -371,7 +372,7 @@ inline PortsList getProvidedPorts(enable_if> template inline PortsList - getProvidedPorts(enable_if_not> = nullptr) +getProvidedPorts(enable_if_not> = nullptr) { return {}; }