From 02492e17b8d6f29353227db943f91023be8ffcf4 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sat, 30 Nov 2024 12:57:24 -0500 Subject: [PATCH] fix build errors --- include/ada/url_pattern.h | 1 + src/url_pattern.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/ada/url_pattern.h b/include/ada/url_pattern.h index c684a5e41..8490dc665 100644 --- a/include/ada/url_pattern.h +++ b/include/ada/url_pattern.h @@ -7,6 +7,7 @@ #include #include +#include namespace ada { diff --git a/src/url_pattern.cpp b/src/url_pattern.cpp index 3fe455cb4..e05bb4324 100644 --- a/src/url_pattern.cpp +++ b/src/url_pattern.cpp @@ -5,11 +5,13 @@ namespace ada { -URLPattern::Component::Component(std::string_view pattern, - std::string_view regex, - const std::vector& names) { +URLPattern::Component::Component(std::string_view pattern_, + std::string_view regex_, + const std::vector& names_) { // TODO: Implement this - return {.pattern = pattern, .regex = regex, .names = std::move(names)}; + pattern = pattern_; + regex = regex_; + names = std::move(names_); } std::optional URLPattern::exec(