Fix bug #18: bug in LpSolverBase::Col operator!= and ::Row operator!=
authoralpar
Thu, 19 Jan 2006 16:56:39 +0000
changeset 1900b16ca599472f
parent 1899 2d4835f5a86a
child 1901 723b2b81d900
Fix bug #18: bug in LpSolverBase::Col operator!= and ::Row operator!=
lemon/lp_base.h
     1.1 --- a/lemon/lp_base.h	Wed Jan 18 09:42:59 2006 +0000
     1.2 +++ b/lemon/lp_base.h	Thu Jan 19 16:56:39 2006 +0000
     1.3 @@ -176,9 +176,10 @@
     1.4        typedef True LpSolverCol;
     1.5        Col() {}
     1.6        Col(const Invalid&) : id(-1) {}
     1.7 -      bool operator<(Col c) const  {return id<c.id;}
     1.8 +      bool operator< (Col c) const  {return id< c.id;}
     1.9 +      bool operator> (Col c) const  {return id> c.id;}
    1.10        bool operator==(Col c) const  {return id==c.id;}
    1.11 -      bool operator!=(Col c) const  {return id==c.id;}
    1.12 +      bool operator!=(Col c) const  {return id!=c.id;}
    1.13      };
    1.14  
    1.15      ///Refer to a row of the LP.
    1.16 @@ -200,9 +201,10 @@
    1.17        Row() {}
    1.18        Row(const Invalid&) : id(-1) {}
    1.19  
    1.20 -      bool operator<(Row c) const  {return id<c.id;}
    1.21 +      bool operator< (Row c) const  {return id< c.id;}
    1.22 +      bool operator> (Row c) const  {return id> c.id;}
    1.23        bool operator==(Row c) const  {return id==c.id;}
    1.24 -      bool operator!=(Row c) const  {return id==c.id;} 
    1.25 +      bool operator!=(Row c) const  {return id!=c.id;} 
    1.26     };
    1.27      
    1.28      ///Linear expression of variables and a constant component