Skip to content

Commit

Permalink
Fix C++11 build
Browse files Browse the repository at this point in the history
  • Loading branch information
bgs99 committed Sep 6, 2024
1 parent 74643c8 commit bdf62ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,6 @@ class PathParamsMatcher final : public MatcherBase {
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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit bdf62ac

Please sign in to comment.