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

rtt_roscomm: fixed compilation of service plugins with Clang #133

Merged

Conversation

meyerj
Copy link
Member

@meyerj meyerj commented Jun 26, 2019

Fixes a regression from #123, that caused build failures when compiling service plugins with Clang. Clang seems to handle SFINAE differently than gcc and compilation of generated service proxy plugins failed with errors like:

In file included from rtt_diagnostic_msgs/diagnostic_msgs_service_proxies/rtt_rosservice_proxies.cpp:7:
rtt_roscomm/rtt_rosservice_proxy.h:99:30: error: implicit instantiation of undefined template 'ROSServiceServerOperationCallerWrapper<diagnostic_msgs::AddDiagnostics, 1>'

…ion from #123)

Clang seems to handle SFINAE differently than gcc and compilation of generated service proxy plugins failed with errors like:

In file included from rtt_diagnostic_msgs/diagnostic_msgs_service_proxies/rtt_rosservice_proxies.cpp:7:
rtt_roscomm/rtt_rosservice_proxy.h:99:30: error: implicit instantiation of undefined template 'ROSServiceServerOperationCallerWrapper<diagnostic_msgs::AddDiagnostics, 1>'
@meyerj meyerj added the bug label Jun 26, 2019
@meyerj meyerj added this to the 2.9 milestone Jun 26, 2019
Copy link
Collaborator

@francisco-miguel-almeida francisco-miguel-almeida left a comment

Choose a reason for hiding this comment

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

LGTM. +1 for using boost::disable_if for SFINAE, it makes the code easier to read now.

@meyerj meyerj merged commit 7420d4c into toolchain-2.9 Oct 18, 2019
@meyerj meyerj deleted the fix-rtt_std_srvs-for-standard-operations-with-clang branch October 18, 2019 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants