-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
<algorithm>
: ranges::clamp
, the projection may be applied at most three times.
#1898
Conversation
Co-authored-by: miscco <mschellenbergercosta@googlemail.com>
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@googlemail.com> Co-authored-by: statementreply <statementreply@gmail.com>
Where should I add tests? At https://github.com/microsoft/STL/blob/main/tests/std/tests/P0896R4_ranges_alg_minmax/test.cpp or create new tests? |
Yes, that would be the best one. The "easiest" way would be to create a constexpr statefull projection and use that in the tests |
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@googlemail.com>
Co-authored-by: Casey Carter <cartec69@gmail.com>
Co-authored-by: Casey Carter <cartec69@gmail.com>
Thank you @Serikov ! I'm a little confused. |
@fsb4000 Sorry for the confusion. My understanding was wrong. Apparently that example contains precondition violation. More then that GCC |
This comment has been minimized.
This comment has been minimized.
<algorithm>
: ranges::clamp
, the projection may be applied at most three times.
Co-authored-by: Casey Carter <Casey@Carter.net>
I'm going to add this to the next batch of changes to merge - please notify me if any further commits are pushed. |
Thank you for ensuring the number of projections in |
Fixes #1893