From 7c7cdc906b88ec62974cc82609c933dba86d6886 Mon Sep 17 00:00:00 2001 From: neargye Date: Tue, 20 Aug 2019 00:01:53 +0500 Subject: [PATCH] fix bitwise_operators --- include/magic_enum.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 2feb4e9..b6eb00a 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -439,7 +439,6 @@ constexpr E operator^(E lhs, E rhs) { template > constexpr E& operator|=(E& lhs, E rhs) { static_assert(detail::check_enum_v, "magic_enum::bitwise_operators::operator|= requires enum type."); - using U = std::underlying_type_t; return lhs = lhs | rhs; } @@ -447,7 +446,6 @@ constexpr E& operator|=(E& lhs, E rhs) { template > constexpr E& operator&=(E& lhs, E rhs) { static_assert(detail::check_enum_v, "magic_enum::bitwise_operators::operator%= requires enum type."); - using U = std::underlying_type_t; return lhs = lhs & rhs; } @@ -455,7 +453,6 @@ constexpr E& operator&=(E& lhs, E rhs) { template > constexpr E& operator^=(E& lhs, E rhs) { static_assert(detail::check_enum_v, "magic_enum::bitwise_operators::operator^= requires enum type."); - using U = std::underlying_type_t; return lhs = lhs ^ rhs; }