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

Constructor delegation is not allowed prior to C++11. #8

Closed
wants to merge 1 commit into from

Conversation

pkok
Copy link
Contributor

@pkok pkok commented Nov 13, 2014

Instead of raising errors, G++ silently allows this on my system. Bugs that are introduced:

  • vimba_camera_ptr_ always equals NULL
  • When printed, opened_ values from {0, 2, 106}

@@ -15,6 +15,8 @@ find_package(catkin REQUIRED COMPONENTS
polled_camera
)

add_definitions(--std=c++11)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is C++11 needed? ROS only supports C++03

There is no guarantee that C++03 and C++11 will stay ABI-compatible. It may break at anytime without prior notice because it only works "by chance" currently.

@miquelmassot
Copy link
Contributor

Hi @pkok, first of all thanks for the contribution. I'm OK will all the changes except for the comment above.

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