News for hackers. Stuff that matters.
Re:Incrementing Vectors (2019) by dmitrygr on Friday September 23, 2022 @03:26AM (#32948984)
And that is why C has the "restrict" keyword, which you should use in precisely such cases
Re:Incrementing Vectors (2019) by Joker_vD on Friday September 23, 2022 @05:54AM (#32949857)
Of course, if you accidentally pass aliased pointers as restricted pointer arguments to a function, "no diagnostic is required".
Re:Incrementing Vectors (2019) by noobermin on Friday September 23, 2022 @04:22AM (#32949304)
Which is a shame because restrict is not in C++
Re:Incrementing Vectors (2019) by nahstra on Friday September 23, 2022 @01:06PM (#32954471)
If it's not in the standard, but it's in every C++ compiler, is it really not in C++? Semantics