Boost logo

Boost :

Subject: Re: [boost] Formal Review of Proposed Boost.Histogram Library Starts TODAY
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2018-09-18 23:26:46


On 09/18/2018 05:17 PM, Gavin Lambert via Boost wrote:
> <snip>
> Steven's already addressed this as well, which seems to agree.  Although
> I must admit a little surprise; I thought I remembered that even though
> the actual initialisation of members occurs in the defined order,
> evaluation of arguments to the initialisers might not be.  Perhaps this
> was something tightened in C++11?

It was always that way:

"There is a sequence point (1.9) after the initialization
of each base and member. The expression-list of a
mem-initializer is evaluated as part of the initialization
of the corresponding base or member." [C++03]

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at