mirror of https://github.com/djcb/mu.git
utils: make MU_ENABLE_BITOPS more constexpr
This commit is contained in:
parent
3086238b33
commit
6ff1831200
|
@ -304,8 +304,8 @@ private:
|
|||
constexpr ET operator~(ET e) { return MU_TO_ENUM(ET, ~(MU_TO_NUM(ET, e))); } \
|
||||
constexpr bool any_of(ET e) { return MU_TO_NUM(ET, e) != 0; } \
|
||||
constexpr bool none_of(ET e) { return MU_TO_NUM(ET, e) == 0; } \
|
||||
static inline ET& operator&=(ET& e1, ET e2) { return e1 = e1 & e2; } \
|
||||
static inline ET& operator|=(ET& e1, ET e2) { return e1 = e1 | e2; }
|
||||
constexpr ET& operator&=(ET& e1, ET e2) { return e1 = e1 & e2; } \
|
||||
constexpr ET& operator|=(ET& e1, ET e2) { return e1 = e1 | e2; }
|
||||
|
||||
/**
|
||||
* For unit tests, assert two std::string's are equal.
|
||||
|
|
Loading…
Reference in New Issue