Skip to content

Commit

Permalink
revert not needed changes to create_subscription
Browse files Browse the repository at this point in the history
Signed-off-by: alberto <alberto.soragna@gmail.com>
  • Loading branch information
alsora committed Jul 16, 2019
1 parent e3b8b5d commit b013d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rclcpp/include/rclcpp/create_subscription.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ template<
typename NodeT>
typename std::shared_ptr<SubscriptionT>
create_subscription(
NodeT & node,
NodeT && node,
const std::string & topic_name,
const rclcpp::QoS & qos,
CallbackT && callback,
Expand All @@ -101,7 +101,7 @@ create_subscription(
msg_mem_strat = nullptr)
{
using rclcpp::node_interfaces::get_node_topics_interface;
auto node_topics = get_node_topics_interface(node);
auto node_topics = get_node_topics_interface(std::forward<NodeT>(node));

if (!msg_mem_strat) {
using rclcpp::message_memory_strategy::MessageMemoryStrategy;
Expand Down

0 comments on commit b013d3f

Please sign in to comment.