[Boost-bugs] [Boost C++ Libraries] #8158: atomic_flag default constructor is not trivial

Subject: [Boost-bugs] [Boost C++ Libraries] #8158: atomic_flag default constructor is not trivial
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-23 15:19:45


#8158: atomic_flag default constructor is not trivial
------------------------------+---------------------------------------------
 Reporter: andysem | Owner: timblechmann
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: atomic
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 The current implementation of atomic_flag has non-trivial default
 constructor that initializes the flag to the non-signalled state. This
 contradicts the standard which requires the default constructor to be
 trivial, leaving the flag uninitialized. The flag should be initialized
 with the ATOMIC_FLAG_INIT macro, which is not currently provided by
 Boost.Atomic.

 The atomic_flag interface should be as close as possible to C++11, which
 would improve portability.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8158>
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:12 UTC