From 9e78d3d13f0b83541f835ac446788fcc82c22880 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 14 May 2022 12:47:26 +0300 Subject: [PATCH] utils: insist on semicolon after MU_ENABLE_BITOPS --- lib/utils/mu-utils.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/mu-utils.hh b/lib/utils/mu-utils.hh index dc6a0cb1..95d6d82f 100644 --- a/lib/utils/mu-utils.hh +++ b/lib/utils/mu-utils.hh @@ -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.