Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sized delete warning with c++14 #14

Merged
merged 2 commits into from
Dec 19, 2016
Merged

fix sized delete warning with c++14 #14

merged 2 commits into from
Dec 19, 2016

Conversation

wjwwood
Copy link
Member

@wjwwood wjwwood commented Dec 18, 2016

Addresses #13 (comment)

@wjwwood wjwwood added the in progress Actively being worked on (Kanban column) label Dec 18, 2016
@wjwwood wjwwood mentioned this pull request Dec 18, 2016
@wjwwood wjwwood added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Dec 18, 2016
Copy link
Member

@codebot codebot left a comment

Choose a reason for hiding this comment

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

lgtm. If you wanted to save a few lines of code, you could just call the unsized delete operator from the sized one, to avoid having to repeat the logic that checks is_running, like here:
ros2/realtime_support@ea5dd3d

but it's not a big deal.

@dirk-thomas
Copy link
Member

+1 with @codebot comment addressed.

@wjwwood
Copy link
Member Author

wjwwood commented Dec 18, 2016

It will probably be tomorrow before I have access to a computer, if you guys want to change it and then merge, +1.

@codebot
Copy link
Member

codebot commented Dec 18, 2016

I'll try to change it now. Hopefully I won't destroy everything in the process.

@codebot
Copy link
Member

codebot commented Dec 18, 2016

Should be OK now. Just forwards the sized delete call through to the unsized one. At least it compiles 😄

@dirk-thomas dirk-thomas merged commit f138bda into master Dec 19, 2016
@dirk-thomas dirk-thomas deleted the wjwwood-patch-1 branch December 19, 2016 18:34
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Dec 19, 2016
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.

3 participants