head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.2 pkgsrc-2026Q1-base:1.1; locks; strict; comment @// @; 1.1 date 2026.01.03.11.45.59; author wiz; state Exp; branches; next ; commitid 7cC4ODErOA4pnWoG; desc @@ 1.1 log @plink: fix build on NetBSD-current @ text @$NetBSD$ Fix error: static assertion failed: comparison object must be invocable as const --- homozyg.cpp.orig 2009-10-10 16:00:21.000000000 +0000 +++ homozyg.cpp @@@@ -33,7 +33,7 @@@@ namespace std template<> class less { public: - bool operator()(Segment const* s1, Segment const* s2) + bool operator()(Segment const* s1, Segment const* s2) const { if ( s1->start > s2->start ) return true; else if ( s1->start < s2->start ) return false; @@@@ -70,7 +70,7 @@@@ namespace std template<> class less { public: - bool operator()(Pool const* p1, Pool const* p2) + bool operator()(Pool const* p1, Pool const* p2) const { if ( p1->segs.size() > p2->segs.size() ) return true; @