Skip to content

Commit 02492e1

Browse files
committed
fix build errors
1 parent 024a7fa commit 02492e1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

include/ada/url_pattern.h

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <string>
99
#include <unordered_map>
10+
#include <variant>
1011

1112
namespace ada {
1213

src/url_pattern.cpp

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55

66
namespace ada {
77

8-
URLPattern::Component::Component(std::string_view pattern,
9-
std::string_view regex,
10-
const std::vector<std::string>& names) {
8+
URLPattern::Component::Component(std::string_view pattern_,
9+
std::string_view regex_,
10+
const std::vector<std::string>& names_) {
1111
// TODO: Implement this
12-
return {.pattern = pattern, .regex = regex, .names = std::move(names)};
12+
pattern = pattern_;
13+
regex = regex_;
14+
names = std::move(names_);
1315
}
1416

1517
std::optional<URLPattern::Result> URLPattern::exec(

0 commit comments

Comments
 (0)