Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8158: atomic_flag default constructor is not trivial
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-17 16:03:26
#8158: atomic_flag default constructor is not trivial
-------------------------------+--------------------------
Reporter: andysem | Owner: timblechmann
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: atomic
Version: Boost 1.53.0 | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------+--------------------------
Changes (by andysem):
* status: new => closed
* resolution: => fixed
Comment:
Fixed in git develop and master, will be released in 1.56.
The default constructor of atomic_flag cannot be trivial in C++03 because
the copy constructor has to be declared private (to prohibit copying).
With a C++11 compiler the implementation now defines a constexpr
constructor which basically provides the same guarantees as the trivial
constructor would have. Also, BOOST_ATOMIC_FLAG_INIT is provided in this
case.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8158#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC