News for hackers. Stuff that matters.
Re:In C++, is empty() faster than comparing the size with zero? by minitech on Thursday October 28, 2021 @03:01PM (#29030119)
> Then there would be no undefined behavior at all - but the optimization is still possible.

But then an optimization could change the defined behavior of aborting to not aborting, which is essentially what undefined behavior means and really bad if you don’t treat it exactly like undefined behavior.

There are no comments on this comment yet.