Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: sequencing redux

16 views
Skip to first unread message

Juha Nieminen

unread,
Sep 21, 2018, 12:05:51 AM9/21/18
to
Stefan Ram <r...@zedat.fu-berlin.de> wrote:
> Therefore
>
> ::std::cout << ++i << ++i << '\n';
>
> now is not undefined behavior anymore.

Didn't C++17 disambiguate quite many such things?

Öö Tiib

unread,
Sep 21, 2018, 4:47:26 AM9/21/18
to
However the order of evaluation is defined there are lot of people who
expect it to be something different and so are confused with what it
does. Better not to write such code even when it is well-defined.

Also the results of order of evaluation poll of Herb Sutter
illustrate it:
https://herbsutter.com/2014/12/01/a-quick-poll-about-order-of-evaluation/


0 new messages