What made i = i++ + 1; legal in C++17?
Before you start yelling undefined behaviour, this is explicitly listed in N4659 (C++17) i = i++ + 1; // the value of i is incremented Yet in N3337 (C++11) i = i++ + 1; // the behavior is undefined What changed? From what I can gather, from [N4659 basic.exec] Except where noted, evaluations of operands … Read more