Skip to content

tests for get_parameter_or and set_parameter_if_not_set - #193

Merged
wjwwood merged 1 commit into
masterfrom
get_parameter_with_default
Mar 23, 2017
Merged

wjwwood merged 1 commit into
masterfrom
get_parameter_with_default

Conversation

@wjwwood

@wjwwood wjwwood commented Mar 16, 2017

Copy link
Copy Markdown
Member

Connects to ros2/rclcpp#309

@wjwwood wjwwood added the in progress Actively being worked on (Kanban column) label Mar 16, 2017

@mikaelarguedas mikaelarguedas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mikaelarguedas

Copy link
Copy Markdown
Member

@wjwwood ping just to make sure this is still in progress and has not been forgotten when merging ros2/rclcpp#309

@wjwwood

wjwwood commented Mar 23, 2017

Copy link
Copy Markdown
Member Author

Oops, good catch 😛

@wjwwood
wjwwood merged commit cd9e1c5 into master Mar 23, 2017
@wjwwood
wjwwood deleted the get_parameter_with_default branch March 23, 2017 23:15
@wjwwood wjwwood removed the in progress Actively being worked on (Kanban column) label Mar 23, 2017
@mikaelarguedas

Copy link
Copy Markdown
Member

@wjwwood FYI: this PR introduced new warnings on MSVC. It's due to ParameterVariant defining integer parameters as int64 and these tests use int

@wjwwood

wjwwood commented Mar 31, 2017

Copy link
Copy Markdown
Member Author

@mikaelarguedas shoot, I missed that (symptom of not having green jobs normally I guess). I also didn't notice because it was introduced before I started tracking these as the Build cop, so I file the warning as "existing" and to look into it later.

I'll try to avoid that in the future.

@wjwwood

wjwwood commented Mar 31, 2017

Copy link
Copy Markdown
Member Author

That's frustrating, I could use a concept with a constraint to limit the possible data types for these functions, but I'm not sure those are ready for prime time:

http://en.cppreference.com/w/cpp/language/constraints

I'll open a pr soon to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants