-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Split point_types.hpp part into field_traits.(h|hpp)
#6375
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
base: master
Are you sure you want to change the base?
Split point_types.hpp part into field_traits.(h|hpp)
#6375
Conversation
* Move `(H|h)as_` traits from `point_types.hpp` into `field_traits.(h|hpp)` * Add `field_traits.h` include where field traits are used * Change a MSVC compiler warning reset via `#pragma warning((push|pop))` * Add `field_traits.h` include in `point_types.h` for backward compatibility Signed-off-by: Ramir Sultanov <[email protected]>
point_types.hpp part into field_traits.(h|hpp)point_types.hpp part into field_traits.(h|hpp)
|
Also may fix #5040 |
|
Based on #6367 |
Signed-off-by: Ramir Sultanov <[email protected]>
Signed-off-by: Ramir Sultanov <[email protected]>
|
I will try to build manually with Edit: Compilation finished successfully. |
point_types.hpp part into field_traits.(h|hpp)point_types.hpp part into field_traits.(h|hpp)
* Remove unnecessary `pcl/point_types.h` includes in some files * Add missing `pcl/point_types.h` includes in some files Signed-off-by: Ramir Sultanov <[email protected]>
* Change license description in `pcl/field_traits.(h|hpp)` Signed-off-by: Ramir Sultanov <[email protected]>
* Add missing `pcl/point_types.h` includes in `examples` Signed-off-by: Ramir Sultanov <[email protected]>
point_types.hpp part into field_traits.(h|hpp)point_types.hpp part into field_traits.(h|hpp)
* Add missing `pcl/point_types.h` includes in some files Signed-off-by: Ramir Sultanov <[email protected]>
Add missing `cstring` include in `common/include/pcl/common/impl/copy_point.hpp` Signed-off-by: Ramir Sultanov <[email protected]>
|
For a moment I thought I was going under some water here... Phew, it was close! Excuse me for informality. As the pipelines are passing it seems that we are good to go (or maybe not, because there are still some files for which it would be nice to add missing includes, but they can be added in other PRs, possibly) |
point_types.hpp part into field_traits.(h|hpp)point_types.hpp part into field_traits.(h|hpp)
|
I tried it on windows yesterday and noticed a lot of: no suitable definition provided for explicit template instantiation request. I haven't quite figured out why its not provided, but we should look into it before merging. |
|
Oh, nice catch! @larshg As far as I understand these warnings were disabled by
But Therefore, in the translation units where |
|
Ahh, yes. And it doesn't seem to be worth looking into fixing that warning, so we just need to include pcl_macros.h accordingly? |
|
Hmm. Disabling warnings in a header file (without returning to the state before the disabling) will affect warnings in user code which includes (directly or transitively) that header. Would it not be better to disable project scope warnings using a build system (in our case CMake)? |
(H|h)as_traits frompoint_types.hppintofield_traits.(h|hpp)field_traits.hinclude where field traits are used#pragma warning((push|pop))field_traits.hinclude inpoint_types.hfor backward compatibilitypcl/point_types.hincludes in some filespcl/point_types.hincludes in some filescstringinclude inpcl/common/impl/copy_point.hpp