-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[tracking] Use SFINAE instead of relying on macro PCL_TRACKING_NORMAL_SUPPORTED
#4643
[tracking] Use SFINAE instead of relying on macro PCL_TRACKING_NORMAL_SUPPORTED
#4643
Conversation
92e5ade
to
876621d
Compare
PCL_TRACKING_NORMAL_SUPPORTED
876621d
to
94a573c
Compare
Any ideas on how to fix a linker error on MacOS? No issues. Reproduced the error (in apps module) |
Might not resolve red CI
Yay!! All tests pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if constexpr
would have been another nice solution, but since we are still at C++14 👍
An option would be to call computeTransformedPointCloudWithoutNormal
inside the HasNoNormal
variant (in addition to the warning) and/or to only allow setting use_normal_
to true if the point actually has a normal inside setUseNormal
, but that is not a must.
Nice suggestion! That can be a future addition. Creating an issue from it |
Eliminates the need for macro
PCL_TRACKING_NORMAL_SUPPORTED
Possibly fixes #4630