11 enum ProtFlag : uint8_t {
29 inline ProtFlag operator|(ProtFlag lhs, ProtFlag rhs) noexcept {
30 using underlying =
typename std::underlying_type<ProtFlag>::type;
31 return static_cast<ProtFlag
> (
32 static_cast<underlying
>(lhs) |
static_cast<underlying
>(rhs)
43 inline bool operator&(ProtFlag lhs, ProtFlag rhs) noexcept {
44 using underlying =
typename std::underlying_type<ProtFlag>::type;
45 return static_cast<underlying
>(lhs) &
static_cast<underlying
>(rhs);
55 inline ProtFlag& operator|=(ProtFlag& lhs, ProtFlag rhs) noexcept {