From 0f727e73884f888bce4b5b303cf7903617c27b64 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 29 Dec 2018 13:29:18 +0100 Subject: compat/enum-operators: fix unary operator not applied --- compat/enum-operators.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; \ - return static_cast(t__((x))); \ + return type(op t_((x))); \ } // end #define DEFINE_ENUM_OPERATORS(type) \ -- cgit v1.2.3