C++26: Trivial infinite loops are no longer undefined behaviour
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
C++26: Trivial infinite loops are no longer undefined behaviour
Unofficial Hacker News client; not affiliated with Y Combinator.
adzm · · focus · HN ↗
echoangle · · focus · HN ↗
rcxdude · · focus · HN ↗
lou1306 · · focus · HN ↗
This is literally the opposite behaviour compared to what is written in the source code, even when you "assume the infinite loop terminates".
echoangle · · focus · HN ↗