Skip to content

Commit

Permalink
fix: replace deprecated MessageUniquePtr to std::unique_ptr<Published…
Browse files Browse the repository at this point in the history
…Type, PublishedTypeDeleter>

Signed-off-by: homalozoa <[email protected]>
  • Loading branch information
homalozoa committed Oct 24, 2024
1 parent bb392ee commit ba5823d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<PublisherT::PublishedType, PublisherT::ROSMessageTypeDeleter> message)
{
tick(message->header.stamp);
publisher_->publish(std::move(message));
Expand Down

0 comments on commit ba5823d

Please sign in to comment.