diff --git a/ros2_foxglove_bridge/src/ros2_foxglove_bridge.cpp b/ros2_foxglove_bridge/src/ros2_foxglove_bridge.cpp index 9ef33e23..bf6e33d3 100644 --- a/ros2_foxglove_bridge/src/ros2_foxglove_bridge.cpp +++ b/ros2_foxglove_bridge/src/ros2_foxglove_bridge.cpp @@ -534,7 +534,7 @@ void FoxgloveBridge::subscribe(foxglove::ChannelId channelId, ConnectionHandle c try { auto subscriber = this->create_generic_subscription( topic, datatype, qos, - std::bind(&FoxgloveBridge::rosMessageHandler, this, channelId, clientHandle, _1), + static_cast)>>(std::bind(&FoxgloveBridge::rosMessageHandler, this, channelId, clientHandle, _1)), subscriptionOptions); subscriptionsByClient.emplace(clientHandle, std::move(subscriber)); } catch (const std::exception& ex) {