Not sure if this applies to the compiler version and configuration, but while(true){} completes
More precisely, if you write a cycle that
- does not call library I / O functions and
- does not have access or change of volatile objects, and
- does not perform any synchronization operations (1.10) or atomic operations (Article 29)
and doesnβt end, you have undefined behavior.
This may not affect your situation, but as C ++ 11 becomes more established, watch out.
spraff
source share