I've noticed that Mingw evaluates all variables on the
right-hand side first before passing the values to the left-
hand. In a statment like
cout << *ForwardIterator << *(++ForwardIterator);
the pointer of ForwardIterator is advanced by one before
the statement is evaluated and sent to the output
stream. That means the same value is sent; if
ForwardIterator was initially on 0, the value at 1 is sent
to cout both times.
I'm trying to use Mingw to do my G++ projects, and with
G++, I've gotten use to having such statements
evaluated as it appears in order such that the above
statement would send the values at 0 and then at 1 to
-----Is there a way to set Mingw to evaluate assignment
statements in a left-to-right order?
Log in to post a comment.