Description: Declare operator as const to fix gcc11 FTBFS
Author: Nilesh Patra <nilesh@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984293
Last-Update: 2021-10-31
--- a/plink.h
+++ b/plink.h
@@ -387,7 +387,7 @@
   template<>
     class less<Locus*> {
     public:
-    bool operator()(Locus const* p1, Locus const* p2)
+    bool operator()(Locus const* p1, Locus const* p2) const
       {
 
 	// Locus comparison based first on distance, 
--- a/homozyg.cpp
+++ b/homozyg.cpp
@@ -33,7 +33,7 @@
   template<>
   class less<Segment*> {
   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 @@
   template<>
   class less<Pool*> {
   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; 
--- a/genogroup.h
+++ b/genogroup.h
@@ -42,7 +42,7 @@
   template<> class less<MultiLocusGenotype*> {
   public:
     bool operator()(MultiLocusGenotype const* p1, 
-		    MultiLocusGenotype const* p2) {
+		    MultiLocusGenotype const* p2) const {
       if (!p1)
 	return true;
       if (!p2)
