1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 1661

Show
Ignore:
Timestamp:
01/12/12 19:57:59 (2 years ago)
Author:
kvangend
Message:

add compare-not-equal operators

Location:
trunk/newgui/model
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/newgui/model/Position.cpp

    r1639 r1661  
    252252} 
    253253 
     254bool operator!=(const Position& p1, const Position& p2) 
     255{ 
     256        return !(p1==p2); 
     257} 
    254258 
    255259bool operator==(const Vector& v1, const Vector& v2) 
     
    261265        return true; 
    262266} 
     267 
     268bool operator!=(const Vector& v1, const Vector& v2) 
     269{ 
     270        return !(v1==v2); 
     271} 
  • trunk/newgui/model/Position.h

    r1639 r1661  
    145145/// compare two positions 
    146146bool operator==(const Position& p1, const Position& p2); 
     147bool operator!=(const Position& p1, const Position& p2); 
    147148 
    148149/// compare two vectors 
    149150bool operator==(const Vector& p1, const Vector& v2); 
     151bool operator!=(const Vector& p1, const Vector& v2); 
    150152 
    151153#endif // POSITION_H