Skip to content

Commit 06ec7e4

Browse files
committed
Added default constructor for WebRequestMethodComposite which matches nothing
1 parent ce5d843 commit 06ec7e4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/ESPAsyncWebServer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ class WebRequestMethodComposite {
154154
constexpr WebRequestMethodComposite(uint32_t m) : mask(m){};
155155

156156
public:
157+
// Default constructor: by default, matches nothing
158+
constexpr WebRequestMethodComposite() : mask(0){};
159+
157160
// Constructor: allows implicit conversion from WebRequestMethod
158161
constexpr WebRequestMethodComposite(WebRequestMethod m) : mask(static_cast<uint32_t>(m)){};
159162

0 commit comments

Comments
 (0)