Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error when using - in regex (sometimes) #107

Open
merisanualex opened this issue May 28, 2024 · 1 comment
Open

Compile error when using - in regex (sometimes) #107

merisanualex opened this issue May 28, 2024 · 1 comment

Comments

@merisanualex
Copy link

Hi, I believe I found a bug in Pattern, I expect that all 3 of these would compile fine but 3rd one seems to give a compile time error saying "Regular Expression contains syntax error":

rfl::Pattern<R"(-)", "first"> first; // works
rfl::Pattern<R"([\-])", "second"> second; // works
rfl::Pattern<R"([-])", "third"> third; // error
@liuzicheng1987
Copy link
Contributor

@merisanualex , we are using an external library for that, CTRE:

https://github.com/hanickadot/compile-time-regular-expressions

Could you maybe ask them about this issue?

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

No branches or pull requests

2 participants