Optimizing away a “while(1);” in C++0x

前端 未结 8 1378
生来不讨喜
生来不讨喜 2020-11-22 10:37

Updated, see below!

I have heard and read that C++0x allows an compiler to print \"Hello\" for the following snippet

#include 

        
8条回答
  •  时光说笑
    2020-11-22 11:16

    I think this is along the lines of the this type of question, which references another thread. Optimization can occasionally remove empty loops.

提交回复
热议问题