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

Preparation for hidden visibility on gcc #6071

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

mvieth
Copy link
Member

@mvieth mvieth commented Jun 23, 2024

In voxel_grid_label.cpp, the implementation of VoxelGrid (from voxel_grid.hpp) must be hidden, otherwise VoxelGrid is instantiated again, but with the wrong visibility attributes (would overwrite the correct instantiation from voxel_grid.cpp). Same thing in sac_model_normal_plane.hpp: the implementation of SampleConsensusModelPlane must be hidden. The implementations of dist8 and dist4 are moved from sac_model_plane.hpp to sac_model_plane.h so that they are available when SampleConsensusModelNormalPlane is instantiated and the compiler can optimize.

Split off from #5779

In voxel_grid_label.cpp, the implementation of `VoxelGrid` (from voxel_grid.hpp) must not be available, otherwise `VoxelGrid` is instantiated again, but with the wrong visibility attributes (would overwrite the correct instantiation from `voxel_grid.cpp`). Same thing in sac_model_normal_plane.hpp: the implementation of `SampleConsensusModelPlane` must not be available. The implementations of `dist8` and `dist4` are moved from sac_model_plane.hpp to sac_model_plane.h so that they are available when `SampleConsensusModelNormalPlane` is instantiated and the compiler can optimize.
@mvieth mvieth added the changelog: enhancement Meta-information for changelog generation label Jun 28, 2024
@mvieth mvieth requested a review from larshg July 20, 2024 11:07
@larshg larshg merged commit 2661588 into PointCloudLibrary:master Jul 20, 2024
13 checks passed
@mvieth mvieth deleted the gcc_hidden_visibility3 branch July 21, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: enhancement Meta-information for changelog generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants