diff --git a/diagnostic_updater/include/diagnostic_updater/publisher.hpp b/diagnostic_updater/include/diagnostic_updater/publisher.hpp index f2bdcb47..e2127667 100644 --- a/diagnostic_updater/include/diagnostic_updater/publisher.hpp +++ b/diagnostic_updater/include/diagnostic_updater/publisher.hpp @@ -242,7 +242,7 @@ class DiagnosedPublisher : public TopicDiagnostic * The timestamp to be used by the TimeStampStatus class will be * extracted from message.header.stamp. */ - virtual void publish(typename PublisherT::MessageUniquePtr message) + virtual void publish(std::unique_ptr message) { tick(message->header.stamp); publisher_->publish(std::move(message));