Fix C++11 build

This commit is contained in:
Bogdan Guliaev 2024-09-06 11:07:50 +03:00
parent 74643c8c97
commit bdf62ac678

View File

@ -840,7 +840,6 @@ public:
bool match(Request &request) const override;
private:
static constexpr char marker[] = "/:";
// Treat segment separators as the end of path parameter capture
// Does not need to handle query parameters as they are parsed before path
// matching
@ -5887,6 +5886,8 @@ inline socket_t BufferStream::socket() const { return 0; }
inline const std::string &BufferStream::get_buffer() const { return buffer; }
inline PathParamsMatcher::PathParamsMatcher(const std::string &pattern) {
static constexpr char marker[] = "/:";
// One past the last ending position of a path param substring
std::size_t last_param_end = 0;