Skip to content

Commit

Permalink
still removing binary_function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ig-dolci committed Sep 27, 2023
1 parent f5e5b53 commit 875f547
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions spatialindex-1.8.5/src/rtree/BulkLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,13 @@ namespace libsupermesh { namespace SpatialIndex
public:
PQEntry(Record* r, uint32_t u32Index) : m_r(r), m_u32Index(u32Index) {}

struct SortAscending : public std::binary_function<const PQEntry&, const PQEntry&, bool>
{
bool operator()(const PQEntry& e1, const PQEntry& e2)
{
if (*(e1.m_r) < *(e2.m_r)) return true;
else return false;
struct SortAscending {
bool operator()(const PQEntry& e1, const PQEntry& e2) const {
return *(e1.m_r) < *(e2.m_r);
}
};


Record* m_r;
uint32_t m_u32Index;
};
Expand Down

0 comments on commit 875f547

Please sign in to comment.