Discussion about this post

User's avatar
Yacob Cohen-Arazi's avatar

this is a good point. I did not realize the aliasing part until you pointed it out. since "&" are just addresses there is a need to take care of aliasing.

Expand full comment
Ali's avatar

Are you talking about vectorization? If so would you mind to clarifying why aliasing is a problem while we dont have any write operation in std::clamp?

Expand full comment
3 more comments...

No posts