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-14 18:15:05


#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:
-------------------------------+--------------------------------------------

Comment (by timblechmann):

 i've started working on a patch, but i'm not sure how complete it is.

 * not sure about keeping the explicit. according to the standard, there is
 no explicit ctor.
 * also the standard says: 'call by value', not 'call by const-reference'
 * regarding the memcpy, i think it is better to cast to the storage type
 and let the compiler do the copying. memcpy might be slightly better as it
 probably has relaxed aliasing constraints (not sure if the compiler is
 smart enough that object and member are different objects). why memcpy was
 used in the first place, no idea ... the original author might know

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