Skip to content

Commit

Permalink
remove std::binary_function from correspondance sort
Browse files Browse the repository at this point in the history
  • Loading branch information
greenbrettmichael authored Nov 6, 2018
1 parent 02b7b16 commit b04936d
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions registration/include/pcl/registration/correspondence_sorting.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ namespace pcl
* \author Dirk Holz
* \ingroup registration
*/
struct sortCorrespondencesByQueryIndex : public std::binary_function<pcl::Correspondence, pcl::Correspondence, bool>
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)
{
Expand All @@ -67,8 +70,11 @@ namespace pcl
* \author Dirk Holz
* \ingroup registration
*/
struct sortCorrespondencesByMatchIndex : public std::binary_function<pcl::Correspondence, pcl::Correspondence, bool>
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)
{
Expand All @@ -80,8 +86,11 @@ namespace pcl
* \author Dirk Holz
* \ingroup registration
*/
struct sortCorrespondencesByDistance : public std::binary_function<pcl::Correspondence, pcl::Correspondence, bool>
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)
{
Expand All @@ -93,8 +102,11 @@ namespace pcl
* \author Dirk Holz
* \ingroup registration
*/
struct sortCorrespondencesByQueryIndexAndDistance : public std::binary_function<pcl::Correspondence, pcl::Correspondence, bool>
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)
{
Expand All @@ -110,8 +122,11 @@ namespace pcl
* \author Dirk Holz
* \ingroup registration
*/
struct sortCorrespondencesByMatchIndexAndDistance : public std::binary_function<pcl::Correspondence, pcl::Correspondence, bool>
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)
{
Expand Down

0 comments on commit b04936d

Please sign in to comment.