removed unnecessary iheritance from deprecated std::binary_function

This commit is contained in:
korialis 2021-11-16 15:36:42 +01:00
parent 920ca0a932
commit b36ec50e35
1 changed files with 11 additions and 4 deletions

View File

@ -213,12 +213,19 @@ public:
typedef SimpleTempData<std::vector<VertexType>, TempData > TempDataType;
struct pred: public std::binary_function<VertDist,VertDist,bool>{
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<VertDist,VertDist,bool>{
// pred(){}
// bool operator()(const VertDist& v0, const VertDist& v1) const
// {return (v0.d > v1.d);}
//};
/*
*
curr: vertex for which distance should be estimated