The CXX Debate
steveklabnik.com
steveklabnik.com
What happens if you pass in 0xFFFFFFFF?
EDIT: wait, since this is unsigned, it is the same semantics as Rust. Well, it wraps no matter the optimization level, but it's not UB.
* in debug builds, you get a panic on overflow
* otherwise, you may choose to panic, but if you do not, it is two's compliment wrapping
It is defined this way so that someday if checks get cheap enough we can enable them in release builds too, but at least it's not UB!