-
Notifications
You must be signed in to change notification settings - Fork 83
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
[FIX] fix regex validator for std::filesystem::path #2216
[FIX] fix regex validator for std::filesystem::path #2216
Conversation
So the problem was that And then weird stuff happened because it validated by iterating over the path and checking each increment? |
Codecov Report
@@ Coverage Diff @@
## master #2216 +/- ##
=======================================
Coverage 98.08% 98.08%
=======================================
Files 262 262
Lines 10679 10680 +1
=======================================
+ Hits 10474 10475 +1
Misses 205 205
Continue to review full report at Codecov.
|
It's fine that it models forward_range but unfortunately the requires clause is also true, namely that the value_type of the range is convertible to std::string. The range value type of a
Yes, somehow it creates an infinite loop 🤔 |
Shouldn't the loop happen on compiletime, because that's where the types must be resolved. |
No it compiles fine but the infinite loop is created when iterating over the file path itself. I don't know what the specs say but I think this will just return the path itself for ever and ever |
Ah yes, it returns the path itself. I thought that you meant that the function call is recursive before. |
89c2c89
to
a62cea3
Compare
@marehr actually your proposed changes to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor suggestion. Otherwise looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
f0c6323
to
c5c906c
Compare
c5c906c
to
a78526a
Compare
Resolves #2214