[Lemon-commits] [lemon_svn] alpar: r2475 - hugo/trunk/lemon

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:52:57 CET 2006


Author: alpar
Date: Thu Jan 19 17:56:39 2006
New Revision: 2475

Modified:
   hugo/trunk/lemon/lp_base.h

Log:
Fix bug #18: bug in LpSolverBase::Col operator!= and ::Row operator!=

Modified: hugo/trunk/lemon/lp_base.h
==============================================================================
--- hugo/trunk/lemon/lp_base.h	(original)
+++ hugo/trunk/lemon/lp_base.h	Thu Jan 19 17:56:39 2006
@@ -176,9 +176,10 @@
       typedef True LpSolverCol;
       Col() {}
       Col(const Invalid&) : id(-1) {}
-      bool operator<(Col c) const  {return id<c.id;}
+      bool operator< (Col c) const  {return id< c.id;}
+      bool operator> (Col c) const  {return id> c.id;}
       bool operator==(Col c) const  {return id==c.id;}
-      bool operator!=(Col c) const  {return id==c.id;}
+      bool operator!=(Col c) const  {return id!=c.id;}
     };
 
     ///Refer to a row of the LP.
@@ -200,9 +201,10 @@
       Row() {}
       Row(const Invalid&) : id(-1) {}
 
-      bool operator<(Row c) const  {return id<c.id;}
+      bool operator< (Row c) const  {return id< c.id;}
+      bool operator> (Row c) const  {return id> c.id;}
       bool operator==(Row c) const  {return id==c.id;}
-      bool operator!=(Row c) const  {return id==c.id;} 
+      bool operator!=(Row c) const  {return id!=c.id;} 
    };
     
     ///Linear expression of variables and a constant component



More information about the Lemon-commits mailing list