Skip to content

Commit

Permalink
use using instead of typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
  • Loading branch information
Chen Lihui committed Jul 14, 2023
1 parent e5d1e03 commit 3cb52a9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rclcpp/include/rclcpp/typesupport_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,25 @@ struct typesupport_action_tag {};
template<typename T>
struct typesupport_traits
{
typedef T type_tag;
using type_tag = T;
};

template<>
struct typesupport_traits<rosidl_message_type_support_t>
{
typedef typesupport_message_tag type_tag;
using type_tag = typesupport_message_tag;
};

template<>
struct typesupport_traits<rosidl_service_type_support_t>
{
typedef typesupport_service_tag type_tag;
using type_tag = typesupport_service_tag;
};

template<>
struct typesupport_traits<rosidl_action_type_support_t>
{
typedef typesupport_action_tag type_tag;
using type_tag = typesupport_action_tag;
};

using SymbolNameErrorFuncPair = std::pair<std::string, std::function<std::string()>>;
Expand Down Expand Up @@ -132,7 +132,6 @@ get_typesupport_handle(
}
}


} // namespace rclcpp

#endif // RCLCPP__TYPESUPPORT_HELPERS_HPP_

0 comments on commit 3cb52a9

Please sign in to comment.