From dee4f9ec6843e026f0109b112d4e6d219f1a358e Mon Sep 17 00:00:00 2001 From: VersusTuneZ Date: Sun, 4 Feb 2024 18:17:33 +0100 Subject: [PATCH] allow | on uint32_t(lhs) and HttpMethod(rhs) --- Includes/Http.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Includes/Http.h b/Includes/Http.h index ebb0db4..2071e03 100644 --- a/Includes/Http.h +++ b/Includes/Http.h @@ -82,6 +82,10 @@ inline uint32_t operator|(HttpMethod lhs, HttpMethod rhs) { return static_cast(lhs) | static_cast(rhs); } +inline uint32_t operator|(uint32_t lhs, HttpMethod rhs) { + return lhs | static_cast(rhs); +} + inline bool operator&(const uint32_t lhs, HttpMethod rhs) { return lhs & static_cast(rhs); }