allow | on uint32_t(lhs) and HttpMethod(rhs)
This commit is contained in:
parent
9f3ff5a596
commit
dee4f9ec68
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue