27 Nov
2018
27 Nov
'18
8:45 p.m.
[Emil Dotchevski]
I would have thought MSVC doesn't do this optimization so it doesn't break existing code which assumes int overflow wraps around. Microsoft is usually very careful with this, and for good reasons.
Seems likely. Perhaps we should have a documentation page, "Optimizations Which MSVC Intentionally Avoids". STL