adding char * constructor for ParameterVarient fixes #75 using delegated constructor
This commit is contained in:
parent
38bbcdac79
commit
442d1e5e0a
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ public:
|
|||
value_.string_value = string_value;
|
||||
value_.type = rcl_interfaces::msg::ParameterType::PARAMETER_STRING;
|
||||
}
|
||||
explicit ParameterVariant(const std::string & name, const char * string_value)
|
||||
: ParameterVariant(name, std::string(string_value)) {}
|
||||
explicit ParameterVariant(const std::string & name, const std::vector<uint8_t> & bytes_value)
|
||||
: name_(name)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue