diff --git a/rclcpp/include/rclcpp/any_subscription_callback.hpp b/rclcpp/include/rclcpp/any_subscription_callback.hpp index 2d8795934e..4fd912fd10 100644 --- a/rclcpp/include/rclcpp/any_subscription_callback.hpp +++ b/rclcpp/include/rclcpp/any_subscription_callback.hpp @@ -34,15 +34,15 @@ #include "rclcpp/type_adapter.hpp" -template -inline constexpr bool always_false_v = false; - namespace rclcpp { namespace detail { +template +inline constexpr bool always_false_v = false; + template struct MessageDeleterHelper { @@ -580,7 +580,7 @@ class AnySubscriptionCallback } // condition to catch unhandled callback types else { // NOLINT[readability/braces] - static_assert(always_false_v, "unhandled callback type"); + static_assert(detail::always_false_v, "unhandled callback type"); } }, callback_variant_); TRACETOOLS_TRACEPOINT(callback_end, static_cast(this)); @@ -660,7 +660,7 @@ class AnySubscriptionCallback } // condition to catch unhandled callback types else { // NOLINT[readability/braces] - static_assert(always_false_v, "unhandled callback type"); + static_assert(detail::always_false_v, "unhandled callback type"); } }, callback_variant_); TRACETOOLS_TRACEPOINT(callback_end, static_cast(this)); @@ -790,7 +790,7 @@ class AnySubscriptionCallback } // condition to catch unhandled callback types else { // NOLINT[readability/braces] - static_assert(always_false_v, "unhandled callback type"); + static_assert(detail::always_false_v, "unhandled callback type"); } }, callback_variant_); TRACETOOLS_TRACEPOINT(callback_end, static_cast(this)); @@ -924,7 +924,7 @@ class AnySubscriptionCallback } // condition to catch unhandled callback types else { // NOLINT[readability/braces] - static_assert(always_false_v, "unhandled callback type"); + static_assert(detail::always_false_v, "unhandled callback type"); } }, callback_variant_); TRACETOOLS_TRACEPOINT(callback_end, static_cast(this));