summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-29 13:29:18 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:48:19 +0100
commit0f727e73884f888bce4b5b303cf7903617c27b64 (patch)
treec0116522a72baa28ed05c421120d8de21b0e68d2 /compat
parent77b58540153a4530f7e8242a8dbc51f3b85d6f61 (diff)
compat/enum-operators: fix unary operator not applied
Diffstat (limited to 'compat')
-rw-r--r--compat/enum-operators.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/enum-operators.hpp b/compat/enum-operators.hpp
index dc39f2f1..cefebaf0 100644
--- a/compat/enum-operators.hpp
+++ b/compat/enum-operators.hpp
@@ -16,7 +16,7 @@
inline type operator op (type x) \
{ \
using t__ = std::underlying_type_t<type>; \
- return static_cast<type>(t__((x))); \
+ return type(op t_((x))); \
} // end
#define DEFINE_ENUM_OPERATORS(type) \