Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Nov 30, 2024
1 parent 024a7fa commit 02492e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions include/ada/url_pattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <string>
#include <unordered_map>
#include <variant>

namespace ada {

Expand Down
10 changes: 6 additions & 4 deletions src/url_pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

namespace ada {

URLPattern::Component::Component(std::string_view pattern,
std::string_view regex,
const std::vector<std::string>& names) {
URLPattern::Component::Component(std::string_view pattern_,
std::string_view regex_,
const std::vector<std::string>& names_) {
// TODO: Implement this
return {.pattern = pattern, .regex = regex, .names = std::move(names)};
pattern = pattern_;
regex = regex_;
names = std::move(names_);
}

std::optional<URLPattern::Result> URLPattern::exec(
Expand Down

0 comments on commit 02492e1

Please sign in to comment.