Skip to content

move implementation to header files - #847

Merged
anonrig merged 8 commits into
mainfrom
yagiz/move-url-pattern-to-header
Jan 24, 2025
Merged

move implementation to header files#847
anonrig merged 8 commits into
mainfrom
yagiz/move-url-pattern-to-header

Conversation

@anonrig

@anonrig anonrig commented Jan 23, 2025

Copy link
Copy Markdown
Member

Moves all url_pattern functions that uses a template argument to header files.

@anonrig
anonrig force-pushed the yagiz/move-url-pattern-to-header branch 2 times, most recently from b963cf5 to eaffbd4 Compare January 23, 2025 16:33
@anonrig
anonrig requested review from jasnell and lemire January 23, 2025 16:33
@anonrig
anonrig force-pushed the yagiz/move-url-pattern-to-header branch from eaffbd4 to 774c820 Compare January 23, 2025 16:34
Comment thread include/ada/url_pattern.h
@anonrig
anonrig force-pushed the yagiz/move-url-pattern-to-header branch 4 times, most recently from 570cc44 to 3461e0e Compare January 23, 2025 19:02
@anonrig
anonrig force-pushed the yagiz/move-url-pattern-to-header branch from 3461e0e to 7a62fa9 Compare January 23, 2025 19:04
@anonrig

anonrig commented Jan 23, 2025

Copy link
Copy Markdown
Member Author

@lemire any idea how to solve this windows build error?

@lemire

lemire commented Jan 23, 2025

Copy link
Copy Markdown
Member

@anonrig

any idea how to solve this windows build error?

Hmmm... Currently away from Windows. Let me check.

@lemire

lemire commented Jan 24, 2025

Copy link
Copy Markdown
Member

@anonrig

So before you can do std::variant<A,B>, visual studio requires that both A and B be defined. Satisfying this required some moving around of definitions. To keep things sane, I just added two new headers.

Easy. Peachy.

I don't know why Visual Studio has this requirement exactly, maybe to help get better errors?

@anonrig

anonrig commented Jan 24, 2025

Copy link
Copy Markdown
Member Author

Thanks @lemire

@anonrig
anonrig merged commit ecdb978 into main Jan 24, 2025
@anonrig
anonrig deleted the yagiz/move-url-pattern-to-header branch January 24, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants