Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on In C++, is empty() faster than comparing the size with zero?. Parent comment
Signed overflow is undefined behavior, so it is allowed to assume that. It's also allowed to assume anything else that it wants to.
Once you cause a signed overflow, all guarantees are out the window and the compiler can do anything it wants to.
There are no comments on this comment yet.
Signed overflow is undefined behavior, so it is allowed to assume that. It's also allowed to assume anything else that it wants to.
Once you cause a signed overflow, all guarantees are out the window and the compiler can do anything it wants to.