Skip to content

Commit 7c59d90

Browse files
committed
fixed Windows error: no appropriate default constructor available
why? who knows Signed-off-by: William Woodall <william@osrfoundation.org>
1 parent e23b422 commit 7c59d90

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

rclcpp/include/rclcpp/node.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,8 @@ class Node : public std::enable_shared_from_this<Node>
177177
create_publisher(
178178
const std::string & topic_name,
179179
const rclcpp::QoS & qos,
180-
const rclcpp::PublisherOptionsWithAllocator<AllocatorT> & options = (
181-
rclcpp::PublisherOptionsWithAllocator<AllocatorT>()
182-
));
180+
const PublisherOptionsWithAllocator<AllocatorT> & options =
181+
PublisherOptionsWithAllocator<AllocatorT>());
183182

184183
/// Create and return a Publisher.
185184
/**

0 commit comments

Comments
 (0)