mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
fix bitwise_operators
This commit is contained in:
parent
e15c38ac65
commit
7c7cdc906b
1 changed files with 0 additions and 3 deletions
|
|
@ -439,7 +439,6 @@ constexpr E operator^(E lhs, E rhs) {
|
|||
template <typename E, typename D = detail::enable_if_enum_t<E>>
|
||||
constexpr E& operator|=(E& lhs, E rhs) {
|
||||
static_assert(detail::check_enum_v<E, D>, "magic_enum::bitwise_operators::operator|= requires enum type.");
|
||||
using U = std::underlying_type_t<D>;
|
||||
|
||||
return lhs = lhs | rhs;
|
||||
}
|
||||
|
|
@ -447,7 +446,6 @@ constexpr E& operator|=(E& lhs, E rhs) {
|
|||
template <typename E, typename D = detail::enable_if_enum_t<E>>
|
||||
constexpr E& operator&=(E& lhs, E rhs) {
|
||||
static_assert(detail::check_enum_v<E, D>, "magic_enum::bitwise_operators::operator%= requires enum type.");
|
||||
using U = std::underlying_type_t<D>;
|
||||
|
||||
return lhs = lhs & rhs;
|
||||
}
|
||||
|
|
@ -455,7 +453,6 @@ constexpr E& operator&=(E& lhs, E rhs) {
|
|||
template <typename E, typename D = detail::enable_if_enum_t<E>>
|
||||
constexpr E& operator^=(E& lhs, E rhs) {
|
||||
static_assert(detail::check_enum_v<E, D>, "magic_enum::bitwise_operators::operator^= requires enum type.");
|
||||
using U = std::underlying_type_t<D>;
|
||||
|
||||
return lhs = lhs ^ rhs;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue