From 9a4a71a33f1115e1969c2eb340c8653a6ae8f4ee Mon Sep 17 00:00:00 2001 From: wep21 Date: Sun, 19 Jul 2026 17:02:50 +1000 Subject: [PATCH] Qualify ShutdownCallbackHandle in context.cpp This upstreams a RoboStack build fix from patch/ros-rolling-rclcpp.win.patch. Qualifying ShutdownCallbackHandle through the rclcpp namespace avoids dependent-name lookup issues on stricter C++ compilers while keeping the existing callback behavior unchanged. Signed-off-by: Tobias Fischer --- rclcpp/src/rclcpp/context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rclcpp/src/rclcpp/context.cpp b/rclcpp/src/rclcpp/context.cpp index 12f0373f51..1a7e381b44 100644 --- a/rclcpp/src/rclcpp/context.cpp +++ b/rclcpp/src/rclcpp/context.cpp @@ -425,7 +425,7 @@ Context::add_shutdown_callback( const ShutdownCallback & callback) { auto callback_shared_ptr = - std::make_shared(callback); + std::make_shared(callback); static_assert( shutdown_type == ShutdownType::pre_shutdown || shutdown_type == ShutdownType::on_shutdown); @@ -438,7 +438,7 @@ Context::add_shutdown_callback( on_shutdown_callbacks_.emplace_back(callback_shared_ptr); } - ShutdownCallbackHandle callback_handle; + rclcpp::ShutdownCallbackHandle callback_handle; callback_handle.callback = callback_shared_ptr; return callback_handle; }