Repository navigation
: add arithmetic overloads for std::lerp - #2113
Conversation
nicole mazzuca (strega-nil-ms)
left a comment
There was a problem hiding this comment.
Not clear that this should be implemented
This comment was marked as outdated.
This comment was marked as outdated.
Casey Carter (CaseyCarter)
left a comment
There was a problem hiding this comment.
We can remove this again if LWG-3223 gains traction, but for now we're just creating a portability landmine by diverging from libc++ and libstdc++ (https://godbolt.org/z/TrPs9zae5). I'm happy to implement this if we cleanup the comment on 1312.
* `` isn't needed * simplify metaprogramming
Not necessary. Top-level cv-qualifiers are stripped away by template argument deduction. |
Yes, but a person could do a stupid thing like an explicit template instantiation, should we care about it? |
The Standard doesn't necessarily even say there's a template here, let alone what the template parameters are and what they mean. This is "play stupid games, win stupid prizes"-level undefined behavior. |
|
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
|
Thanks for fixing this bug and improving |
Fixes #2112
Should I add
remove_volatileorremove_cvforif constexprconditions?I think "No" but I am unsure.