From b36ec50e359378896c60b7ae5bb03f9055dcc870 Mon Sep 17 00:00:00 2001 From: korialis Date: Tue, 16 Nov 2021 15:36:42 +0100 Subject: [PATCH] removed unnecessary iheritance from deprecated std::binary_function --- vcg/complex/algorithms/geodesic.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/vcg/complex/algorithms/geodesic.h b/vcg/complex/algorithms/geodesic.h index db45cd2d..50f21896 100644 --- a/vcg/complex/algorithms/geodesic.h +++ b/vcg/complex/algorithms/geodesic.h @@ -213,12 +213,19 @@ public: typedef SimpleTempData, TempData > TempDataType; - struct pred: public std::binary_function{ - pred(){} - bool operator()(const VertDist& v0, const VertDist& v1) const - {return (v0.d > v1.d);} + class pred { + public: + pred () {}; + bool operator()(const VertDist& v0, const VertDist& v1) const + {return (v0.d > v1.d);} }; + //struct pred: public std::binary_function{ + // pred(){} + // bool operator()(const VertDist& v0, const VertDist& v1) const + // {return (v0.d > v1.d);} + //}; + /* * curr: vertex for which distance should be estimated