allow | on uint32_t(lhs) and HttpMethod(rhs)

This commit is contained in:
Maurice Grönwoldt 2024-02-04 18:17:33 +01:00
parent 9f3ff5a596
commit dee4f9ec68
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,10 @@ inline uint32_t operator|(HttpMethod lhs, HttpMethod rhs) {
return static_cast<uint32_t>(lhs) | static_cast<uint32_t>(rhs);
}
inline uint32_t operator|(uint32_t lhs, HttpMethod rhs) {
return lhs | static_cast<uint32_t>(rhs);
}
inline bool operator&(const uint32_t lhs, HttpMethod rhs) {
return lhs & static_cast<uint32_t>(rhs);
}