# HG changeset patch # User alpar # Date 1137689799 0 # Node ID b16ca599472fff47ac10934c373816d6e87a3c88 # Parent 2d4835f5a86a3ba4b32c5a9a50189b6839864185 Fix bug #18: bug in LpSolverBase::Col operator!= and ::Row operator!= diff -r 2d4835f5a86a -r b16ca599472f lemon/lp_base.h --- a/lemon/lp_base.h Wed Jan 18 09:42:59 2006 +0000 +++ b/lemon/lp_base.h Thu Jan 19 16:56:39 2006 +0000 @@ -176,9 +176,10 @@ typedef True LpSolverCol; Col() {} Col(const Invalid&) : id(-1) {} - bool operator<(Col c) const {return id (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 (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