COIN-OR::LEMON - Graph Library

Changeset 1900:b16ca599472f in lemon-0.x for lemon/lp_base.h


Ignore:
Timestamp:
01/19/06 17:56:39 (18 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2475
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_base.h

    r1899 r1900  
    177177      Col() {}
    178178      Col(const Invalid&) : id(-1) {}
    179       bool operator<(Col c) const  {return id<c.id;}
     179      bool operator< (Col c) const  {return id< c.id;}
     180      bool operator> (Col c) const  {return id> c.id;}
    180181      bool operator==(Col c) const  {return id==c.id;}
    181       bool operator!=(Col c) const  {return id==c.id;}
     182      bool operator!=(Col c) const  {return id!=c.id;}
    182183    };
    183184
     
    201202      Row(const Invalid&) : id(-1) {}
    202203
    203       bool operator<(Row c) const  {return id<c.id;}
     204      bool operator< (Row c) const  {return id< c.id;}
     205      bool operator> (Row c) const  {return id> c.id;}
    204206      bool operator==(Row c) const  {return id==c.id;}
    205       bool operator!=(Row c) const  {return id==c.id;}
     207      bool operator!=(Row c) const  {return id!=c.id;}
    206208   };
    207209   
Note: See TracChangeset for help on using the changeset viewer.