Skip to content

Fix osx build - #65

Merged
jackieokay merged 1 commit into
masterfrom
fix_osx_build
Nov 5, 2015
Merged

jackieokay merged 1 commit into
masterfrom
fix_osx_build

Conversation

@jackieokay

Copy link
Copy Markdown
Contributor

Use enable_if to disable the construct method if the pointer type is const in the custom allocator.

@jackieokay jackieokay added the in progress Actively being worked on (Kanban column) label Nov 5, 2015
Comment thread test_rclcpp/test/test_allocator.cpp Outdated

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.

Why reinterpret instead of static here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That was leftover from experimenting with what would make it compile. Actually, no cast is needed because it will implicitly cast from the U pointer type to void*.

@codebot

codebot commented Nov 5, 2015

Copy link
Copy Markdown
Member

if enable_if is a template argument, does that change the usage pattern when someone wants to use this template?

So many advanced features nowadays. What happened to C with Classes and printf ? 🐔

@esteve

esteve commented Nov 5, 2015

Copy link
Copy Markdown
Member

+1

@jackieokay

Copy link
Copy Markdown
Contributor Author

the first run built on OSX and Windows, I'm rerunning Jenkins again after making a few tweaks based on comments

http://ci.ros2.org/job/ros2_batch_ci_linux/553/
http://ci.ros2.org/job/ros2_batch_ci_osx/421/
http://ci.ros2.org/job/ros2_batch_ci_windows/568/

@jackieokay jackieokay self-assigned this Nov 5, 2015
@jackieokay jackieokay added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Nov 5, 2015
jackieokay added a commit that referenced this pull request Nov 5, 2015
@jackieokay
jackieokay merged commit 2d670f7 into master Nov 5, 2015
@jackieokay
jackieokay deleted the fix_osx_build branch November 5, 2015 19:03
@jackieokay jackieokay removed the in review Waiting for review (Kanban column) label Nov 5, 2015
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.

4 participants