Re: [Boost-bugs] [Boost C++ Libraries] #8057: Add constexpr + noexcept for atomic

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8057: Add constexpr + noexcept for atomic
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-23 15:10:31


#8057: Add constexpr + noexcept for atomic
-------------------------------+--------------------------------------------
  Reporter: viboes | Owner: timblechmann
      Type: Feature Requests | Status: new
 Milestone: Boost 1.54.0 | Component: atomic
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Changes (by andysem):

 * cc: Andrey.Semashev@… (added)

Comment:

 The memcpy is needed when the value type is a struct. The struct size may
 not match exactly the storage_type (e.g. struct s { char a[ 3 ]; };), so
 we have to zero-initialize the storage first and then copy the struct into
 it with memcpy. This also takes care of the alignment issue as a side
 effect.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8057#comment:8>
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