3 ms·
> a class like CSafeInt should cover all integer overflow bugs with run-time checks If that's all you want it's easy to do that in any language? What's so spec
by lmm 10y ago
> a class like CSafeInt should cover all integer overflow bugs with run-time checks
If that's all you want it's easy to do that in any language? What's so special about C++? The reason this gets talked about more in C++ is that the consequences of integer overflow in C++ are dreadful (undefined behaviour i.e. instant security bug) whereas in most languages adding two integers will evaluate to an integer.