From 9943576fe795678f9d58e48bc93ed9a3284e8993 Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Mon, 4 May 2015 10:12:44 -0700 Subject: [PATCH] Use unsigned int8 to match the byte primitive type --- rclcpp/include/rclcpp/parameter.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rclcpp/include/rclcpp/parameter.hpp b/rclcpp/include/rclcpp/parameter.hpp index bdacfe9..f5cba37 100644 --- a/rclcpp/include/rclcpp/parameter.hpp +++ b/rclcpp/include/rclcpp/parameter.hpp @@ -93,7 +93,7 @@ public: value_.string_value = string_value; value_.parameter_type = rcl_interfaces::ParameterType::PARAMETER_STRING; } - explicit ParameterVariant(const std::string & name, const std::vector & bytes_value) + explicit ParameterVariant(const std::string & name, const std::vector & bytes_value) : name_(name) { value_.bytes_value = bytes_value; @@ -156,7 +156,7 @@ inline bool ParameterVariant::get_value() const return value_.bool_value; } template<> -inline std::vector ParameterVariant::get_value() const +inline std::vector ParameterVariant::get_value() const { if (value_.parameter_type != rcl_interfaces::ParameterType::PARAMETER_BYTES) { // TODO: use custom exception