Skip to content

Commit

Permalink
add union for SymBitMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dodd committed Jan 26, 2017
1 parent 8b27ae3 commit 8689e53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/symbitmatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class SymBitMatrix : private bitvec {
using bitvec::operator bool;

private:
using bitvec::operator|=;
template<class T> class rowref {
friend class SymBitMatrix;
T &self;
Expand Down Expand Up @@ -87,6 +88,7 @@ class SymBitMatrix : private bitvec {

bool operator==(const SymBitMatrix &a) const { return bitvec::operator==(a); }
bool operator!=(const SymBitMatrix &a) const { return bitvec::operator!=(a); }
bool operator|=(const SymBitMatrix &a) { return bitvec::operator|=(a); }
};

#endif /* P4C_LIB_SYMBITMATRIX_H_ */

0 comments on commit 8689e53

Please sign in to comment.