-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Change points.size()
to size()
to make transition to index_t
easier
#4190
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
Change points.size()
to size()
to make transition to index_t
easier
#4190
Conversation
Needs testing for GPU and CUDA modules |
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.
Partial (33/357)
...ramework/include/pcl/apps/3d_rec_framework/feature_wrapper/local/colorshot_local_estimator.h
Outdated
Show resolved
Hide resolved
...rec_framework/include/pcl/apps/3d_rec_framework/feature_wrapper/local/fpfh_local_estimator.h
Outdated
Show resolved
Hide resolved
...framework/include/pcl/apps/3d_rec_framework/feature_wrapper/local/fpfh_local_estimator_omp.h
Outdated
Show resolved
Hide resolved
apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/feature_wrapper/local/local_estimator.h
Outdated
Show resolved
Hide resolved
...rec_framework/include/pcl/apps/3d_rec_framework/feature_wrapper/local/shot_local_estimator.h
Outdated
Show resolved
Hide resolved
Issues remaining to discuss (repeating because of GitHub's awesome interface):
Issues split off from this PR: #4212, #4213, #4214 PR split off from here: #4216 |
I'm not very experienced with string manipulation in C++. This is what I considered
|
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.
Partial (119/357). We should address all for-range conversions here. It will suppress three problems in one a single place:
- no direct use of
points.size()
or evensize()
for that matter - no need to know the return type of
size()
- no issues with potential range limit of the index type used.
doc/tutorials/content/sources/don_segmentation/don_segmentation.cpp
Outdated
Show resolved
Hide resolved
doc/tutorials/content/sources/model_outlier_removal/model_outlier_removal.cpp
Outdated
Show resolved
Hide resolved
doc/tutorials/content/sources/model_outlier_removal/model_outlier_removal.cpp
Outdated
Show resolved
Hide resolved
125 instances of cast found and replaced using
|
e36e70b
to
4b3a9ed
Compare
Answering #4190 (comment)
No. The corner case is when x is a natural number. x = 2 |
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.
Partial (128/371). Be very conservative with your force-pushes. This last one you did offset my review progress by 50 files.
...ramework/include/pcl/apps/3d_rec_framework/feature_wrapper/local/colorshot_local_estimator.h
Outdated
Show resolved
Hide resolved
features/include/pcl/features/impl/moment_of_inertia_estimation.hpp
Outdated
Show resolved
Hide resolved
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.
Partial (213/371)
keypoints/include/pcl/keypoints/impl/smoothed_surfaces_keypoint.hpp
Outdated
Show resolved
Hide resolved
keypoints/include/pcl/keypoints/impl/smoothed_surfaces_keypoint.hpp
Outdated
Show resolved
Hide resolved
So much more work left.... sigh Regarding casts, I don't see a point in replacing the casts now and adding them later when the loop index variable is changed to |
Addressing conflicts too |
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 you addressed all the items, this is good to go from my side.
I did. Please approve and merge 😄 |
…ral fixes: * Fix warning: function previously declared with an explicit exception specification redeclared with an implicit exception specification [-Wimplicit-exception-spec-mismatch] RealSense2Grabber::~RealSense2Grabber () * Fix error: use of undeclared identifier 'size' (introduced in PointCloudLibrary#4190) * Fix error: variable 'cloud_texture_ptr' must have explicitly specified data sharing attributes
…ral fixes: * Fix warning: function previously declared with an explicit exception specification redeclared with an implicit exception specification [-Wimplicit-exception-spec-mismatch] RealSense2Grabber::~RealSense2Grabber () * Fix error: use of undeclared identifier 'size' (issue introduced in PointCloudLibrary#4190) * Fix error: variable 'cloud_texture_ptr' must have explicitly specified data sharing attributes
…ral fixes: * Fix warning: function previously declared with an explicit exception specification redeclared with an implicit exception specification [-Wimplicit-exception-spec-mismatch] RealSense2Grabber::~RealSense2Grabber () * Fix warning: comparison of integers of different signs: 'int' and 'std::size_t' * Fix error: use of undeclared identifier 'size' (issue introduced in PointCloudLibrary#4190) * Fix error: variable 'cloud_texture_ptr' must have explicitly specified data sharing attributes
…ral fixes: * Fix warning: function previously declared with an explicit exception specification redeclared with an implicit exception specification [-Wimplicit-exception-spec-mismatch] RealSense2Grabber::~RealSense2Grabber () * Fix warning: comparison of integers of different signs: 'int' and 'std::size_t' * Fix error: use of undeclared identifier 'size' (issue introduced in PointCloudLibrary#4190) * Fix error: variable 'cloud_texture_ptr' must have explicitly specified data sharing attributes
…ral fixes: * Fix warning: function previously declared with an explicit exception specification redeclared with an implicit exception specification [-Wimplicit-exception-spec-mismatch] RealSense2Grabber::~RealSense2Grabber () * Fix warning: comparison of integers of different signs: 'int' and 'std::size_t' * Fix error: use of undeclared identifier 'size' (issue introduced in PointCloudLibrary#4190) * Fix error: variable 'cloud_texture_ptr' must have explicitly specified data sharing attributes
No description provided.