diff --git a/include/behaviortree_cpp/basic_types.h b/include/behaviortree_cpp/basic_types.h index ac3208a57..a86e31504 100644 --- a/include/behaviortree_cpp/basic_types.h +++ b/include/behaviortree_cpp/basic_types.h @@ -158,7 +158,7 @@ inline StringConverter GetAnyFromStringFunctor() template [[nodiscard]] std::string toStr(const T& value) { - if constexpr (std::is_convertible_v or + if constexpr (std::is_convertible_v || std::is_convertible_v) { return value;