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