Skip to content

Commit

Permalink
Drop wrong template specialization (#1926) (#1937)
Browse files Browse the repository at this point in the history
This fails with g++ -std=gnu++20.

Signed-off-by: Jochen Sprickerhof <[email protected]>
(cherry picked from commit 02802bc)

Co-authored-by: Jochen Sprickerhof <[email protected]>
  • Loading branch information
mergify[bot] and jspricke authored Jun 15, 2022
1 parent cf2a278 commit 166007d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/publisher_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct PublisherOptionsWithAllocator : public PublisherOptionsBase
/// Optional custom allocator.
std::shared_ptr<Allocator> allocator = nullptr;

PublisherOptionsWithAllocator<Allocator>() {}
PublisherOptionsWithAllocator() {}

/// Constructor using base class as input.
explicit PublisherOptionsWithAllocator(const PublisherOptionsBase & publisher_options_base)
Expand Down
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/subscription_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct SubscriptionOptionsWithAllocator : public SubscriptionOptionsBase
/// Optional custom allocator.
std::shared_ptr<Allocator> allocator = nullptr;

SubscriptionOptionsWithAllocator<Allocator>() {}
SubscriptionOptionsWithAllocator() {}

/// Constructor using base class as input.
explicit SubscriptionOptionsWithAllocator(
Expand Down

0 comments on commit 166007d

Please sign in to comment.