Skip to content

Commit

Permalink
Merge pull request #2942 from taketwo/fix-2931
Browse files Browse the repository at this point in the history
Add noexcept for boost::checked_delete<> friend
  • Loading branch information
SergioRAgostinho authored Mar 25, 2019
2 parents c08af14 + 5605910 commit 648932b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions segmentation/include/pcl/segmentation/supervoxel_clustering.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@

#pragma once

#include <boost/version.hpp>

#include <pcl/features/normal_3d.h>
#include <pcl/pcl_base.h>
#include <pcl/point_cloud.h>
Expand Down Expand Up @@ -524,7 +526,11 @@ namespace pcl
};

//Make boost::ptr_list can access the private class SupervoxelHelper
#if BOOST_VERSION >= 107000
friend void boost::checked_delete<> (const typename pcl::SupervoxelClustering<PointT>::SupervoxelHelper *) BOOST_NOEXCEPT;
#else
friend void boost::checked_delete<> (const typename pcl::SupervoxelClustering<PointT>::SupervoxelHelper *);
#endif

typedef boost::ptr_list<SupervoxelHelper> HelperListT;
HelperListT supervoxel_helpers_;
Expand Down

0 comments on commit 648932b

Please sign in to comment.