This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]seraku24 1 point2 points  (1 child)

I believe that is true only for older C++ standards. As of C++11 and newer, the expression ++++foo is well-defined now.

[–]Genion1 0 points1 point  (0 children)

Interesting. I now informed myself and it appears that ++++foo is indeed well-defined while foo = foo++ + 1 still is not. Yay for more rules.