diff --git a/registration/include/pcl/registration/correspondence_sorting.h b/registration/include/pcl/registration/correspondence_sorting.h index fd2b2fd6ab9..83eb64e07f8 100644 --- a/registration/include/pcl/registration/correspondence_sorting.h +++ b/registration/include/pcl/registration/correspondence_sorting.h @@ -54,8 +54,11 @@ namespace pcl * \author Dirk Holz * \ingroup registration */ - struct sortCorrespondencesByQueryIndex : public std::binary_function + struct sortCorrespondencesByQueryIndex { + typedef pcl::Correspondence first_argument_type; + typedef pcl::Correspondence second_argument_type; + typedef bool result_type; bool operator()( pcl::Correspondence a, pcl::Correspondence b) { @@ -67,8 +70,11 @@ namespace pcl * \author Dirk Holz * \ingroup registration */ - struct sortCorrespondencesByMatchIndex : public std::binary_function + struct sortCorrespondencesByMatchIndex { + typedef pcl::Correspondence first_argument_type; + typedef pcl::Correspondence second_argument_type; + typedef bool result_type; bool operator()( pcl::Correspondence a, pcl::Correspondence b) { @@ -80,8 +86,11 @@ namespace pcl * \author Dirk Holz * \ingroup registration */ - struct sortCorrespondencesByDistance : public std::binary_function + struct sortCorrespondencesByDistance { + typedef pcl::Correspondence first_argument_type; + typedef pcl::Correspondence second_argument_type; + typedef bool result_type; bool operator()( pcl::Correspondence a, pcl::Correspondence b) { @@ -93,8 +102,11 @@ namespace pcl * \author Dirk Holz * \ingroup registration */ - struct sortCorrespondencesByQueryIndexAndDistance : public std::binary_function + struct sortCorrespondencesByQueryIndexAndDistance { + typedef pcl::Correspondence first_argument_type; + typedef pcl::Correspondence second_argument_type; + typedef bool result_type; inline bool operator()( pcl::Correspondence a, pcl::Correspondence b) { @@ -110,8 +122,11 @@ namespace pcl * \author Dirk Holz * \ingroup registration */ - struct sortCorrespondencesByMatchIndexAndDistance : public std::binary_function + struct sortCorrespondencesByMatchIndexAndDistance { + typedef pcl::Correspondence first_argument_type; + typedef pcl::Correspondence second_argument_type; + typedef bool result_type; inline bool operator()( pcl::Correspondence a, pcl::Correspondence b) {