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: 2013-11-10 21:31:03


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

 * status: closed => reopened
 * resolution: fixed =>

Comment:

 Vicente,

 I'm having a problem with this patch. My gcc 4.53 compiler gives the
 error message:

 "noncopayable:: declared with non-public access cannot be defaulted in the
 class body"

 Which seems to make some sense to me. My copy of the standard (section
 8.4.2) says
 "If it[the function] is explicitly defaulted on its first declaration, —
 it shall be public,"
 As usual the standard text is somewhat convoluted, but that what it says
 to me. I'm
 not sure why the test passes. The macro name
 (BOOST_NO_DEFAULTED_FUNCTIONS used to condition this code has been marked
 as deprecated in favor of a new one (BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) i
 don't know if that might be related.

 Robert Ramey

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