Boost logo

Boost :

Subject: Re: [boost] [thread] thread_specific_ptr and static initialization order
From: Tanguy Fautré (tfautre_at_[hidden])
Date: 2010-05-09 19:23:00


On 10/05/2010 00:13, Tanguy Fautré wrote:
>
> boost::once_flag current_thread_tls_init_flag={0,0,0,0};
>
> I've got no idea what the standard says about such a case with respect
> to the static initialization order problem.

It seems that a recent change (commit 57889) broke the POD guarantees of
boost::once_flag by adding a destructor.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk