Skip to content

ParameterVariant constructor with hard coded string gets interpreted as bool #75

Closed

Description

@tfoote

rclcpp::parameter::ParameterVariant("bar", std::string("hello")) is intepreted as a string correctly.
rclcpp::parameter::ParameterVariant("bar", "hello") is interpreted as a bool with value true.

From testing in ros2/system_tests#14

Activity

  1. self-assigned this
    on Aug 4, 2015
  2. tfoote commented on Aug 4, 2015

    @tfoote
    ContributorAuthor

    Probably need a const char * constructor explicity.

  3. added
    ready
    on Aug 4, 2015
  4. added
    in progress
    in review
    and removed
    ready
    in progress
    on Aug 4, 2015
  5. removed
    in review
    on Aug 4, 2015
  6. added a commit that references this issue on Sep 17, 2021
  7. added a commit that references this issue on Jul 9, 2022
  8. added a commit that references this issue on Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions