Re: [Boost-bugs] [Boost C++ Libraries] #6578: Update noncopyable for C++11

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6578: Update noncopyable for C++11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-04 21:22:30


#6578: Update noncopyable for C++11
--------------------------------------+--------------------------
  Reporter: dlwalker | Owner: viboes
      Type: Feature Requests | Status: closed
 Milestone: Boost 1.58.0 | Component: utility
   Version: Boost Development Trunk | Severity: Optimization
Resolution: fixed | Keywords: noncopyable
--------------------------------------+--------------------------
Changes (by viboes):

 * status: reopened => closed
 * resolution: => fixed
 * milestone: Boost 1.54.0 => Boost 1.58.0

Comment:

 It seems the new code fixes this issue.


 {{{
   class noncopyable
   {
   protected:
 #if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) &&
 !defined(BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS)
       BOOST_CONSTEXPR noncopyable() = default;
       ~noncopyable() = default;
 #else
       noncopyable() {}
       ~noncopyable() {}
 #endif
 #if !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
       noncopyable( const noncopyable& ) = delete;
       noncopyable& operator=( const noncopyable& ) = delete;
 #else
   private: // emphasize the following members are private
       noncopyable( const noncopyable& );
       noncopyable& operator=( const noncopyable& );
 #endif
   };
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6578#comment:6>
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:18 UTC