utils: insist on semicolon after MU_ENABLE_BITOPS

This commit is contained in:
Dirk-Jan C. Binnema 2022-05-14 12:47:26 +03:00
parent bf9e083ed4
commit 9e78d3d13f
1 changed files with 2 additions and 1 deletions

View File

@ -440,7 +440,8 @@ private:
constexpr bool none_of(ET e) { return MU_TO_NUM(ET, e) == 0; } \
constexpr bool one_of(ET e1, ET e2) { return (e1 & e2) == e2; } \
constexpr 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; } \
static_assert(1==1) // require a semicolon
/**
* For unit tests, assert two std::string's are equal.