I don\'t quite understand why I don\'t get a division by zero exception:
int d = 0; d /= d;
I expected
Note that you can have your code generate a C++ exception in this (and other cases) by using boost safe numerics. https://github.com/boostorg/safe_numerics