Skip to content

Commit

Permalink
Merge branch 'issue-224' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Berkeley Churchill committed Jul 29, 2018
2 parents cc86c41 + 74b9c1f commit 505ab5e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/m.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,18 @@ class Mem : public Operand {
*/
bool check() const;

/** Comparison based on on val_. */
constexpr bool operator<(const Mem& rhs) const {
return val_ < rhs.val_;
/** Comparison based on underlying values. */
bool operator==(const Mem& rhs) const {
return std::make_pair(val_, val2_) == std::make_pair(rhs.val_, rhs.val2_);
}
/** Comparison based on on val_. */
constexpr bool operator==(const Mem& rhs) const {
return val_ == rhs.val_;
}
/** Comparison based on on val_. */
constexpr bool operator!=(const Mem& rhs) const {
/** Comparison based on underlying values. */
bool operator!=(const Mem& rhs) const {
return !(*this == rhs);
}
/** Comparison based on underlying values. */
bool operator<(const Mem& rhs) const {
return std::make_pair(val_, val2_) < std::make_pair(rhs.val_, rhs.val2_);
}

/** STL-compliant hash. */
constexpr size_t hash() const {
Expand Down

0 comments on commit 505ab5e

Please sign in to comment.