2 ms·
C++ compilers are free to optimize infinite loops without side effects away and people are generally fine with that.
by adrianN 5y ago
C++ compilers are free to optimize infinite loops without side effects away and people are generally fine with that.
- jhgb 5y agoWell, I'm sure this is not the worst thing about C++ that C++ people are "generally fine with", so that really doesn't tell me a lot. Not quite sure if this applies to useful programs, though. Lack of tail call elimination can definitely break a class of useful programs even with side effects.