Skip to content

Commit

Permalink
Fix another ambiguous equality.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy committed May 31, 2024
1 parent 4d44a74 commit a6d3291
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bitvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,9 @@ class bitvec::copy_bitref : public bitvec::bitref<const bitvec> {
copy_bitref(const copy_bitref &a) = default;
copy_bitref(copy_bitref &&a) = default;
bool operator==(const bitref &a) const { return idx == a.idx && self == a.self; }
bool operator==(const copy_bitref &a) const { return idx == a.idx && self == a.self; }
bool operator!=(const bitref &a) const { return idx != a.idx || self != a.self; }
bool operator!=(const copy_bitref &a) const { return idx != a.idx || self != a.self; }
};
inline bitvec::copy_bitref bitvec::min() && { return copy_bitref(*this, ffs()); }
inline bitvec::copy_bitref bitvec::max() && { return --copy_bitref(*this, size * bits_per_unit); }
Expand Down

0 comments on commit a6d3291

Please sign in to comment.