Skip to content

Commit d211233

Browse files
authored
Merge pull request #6294 from mvieth/std_sort
Change sort to std::sort to avoid ambiguity
2 parents c9a1750 + db19d7d commit d211233

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

keypoints/include/pcl/keypoints/impl/smoothed_surfaces_keypoint.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ pcl::SmoothedSurfacesKeypoint<PointT, PointNT>::initCompute ()
230230
cloud_normals_.push_back (normals_);
231231
cloud_trees_.push_back (tree_);
232232
// Sort the clouds by their scales
233-
sort (scales_.begin (), scales_.end (), compareScalesFunction);
233+
std::sort (scales_.begin (), scales_.end (), compareScalesFunction);
234234

235235
// Find the index of the input after sorting
236236
for (std::size_t i = 0; i < scales_.size (); ++i)

registration/include/pcl/registration/impl/ppf_registration.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ pcl::PPFRegistration<PointSource, PointTarget>::clusterPoses(
250250
PCL_DEBUG("[PPFRegistration] Clustering poses (initially got %zu poses)\n",
251251
poses.size());
252252
// Start off by sorting the poses by the number of votes
253-
sort(poses.begin(), poses.end(), poseWithVotesCompareFunction);
253+
std::sort(poses.begin(), poses.end(), poseWithVotesCompareFunction);
254254

255255
std::vector<PoseWithVotesList> clusters;
256256
std::vector<std::pair<std::size_t, unsigned int>> cluster_votes;

search/include/pcl/search/impl/search.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ pcl::search::Search<PointT>::sortResults (
194194
order [idx] = static_cast<index_t> (idx);
195195

196196
Compare compare (distances);
197-
sort (order.begin (), order.end (), compare);
197+
std::sort (order.begin (), order.end (), compare);
198198

199199
Indices sorted (indices.size ());
200200
for (std::size_t idx = 0; idx < order.size (); ++idx)
@@ -203,7 +203,7 @@ pcl::search::Search<PointT>::sortResults (
203203
indices = sorted;
204204

205205
// sort the according distances.
206-
sort (distances.begin (), distances.end ());
206+
std::sort (distances.begin (), distances.end ());
207207
}
208208

209209
#define PCL_INSTANTIATE_Search(T) template class PCL_EXPORTS pcl::search::Search<T>;

0 commit comments

Comments
 (0)