📰00C++26: Trivial infinite loops are no longer undefined behaviourSandor Dargo’s Blog·18 days ago#QDdTdUqu#cpp#cpp26#undefinedbehaviour#issuecomment#include#compilers+3 more🧰Tag tools✨Add tagLet’s start with a question! Is this program well-defined? 1 2 3 4 int main() { while (true) ; } If you said yes, you’d be wrong — at least before C++26. A while (true); loop with no side effects used to be undefined behaviour.… Read more15s0Read later0Read More