Re: [Boost-bugs] [Boost C++ Libraries] #11959: boost::is_copy_constructible triggers copy constructor generation on Visual Studio 2013 Update 4

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11959: boost::is_copy_constructible triggers copy constructor generation on Visual Studio 2013 Update 4
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-05 18:42:58


#11959: boost::is_copy_constructible triggers copy constructor generation on Visual
Studio 2013 Update 4
-------------------------------+-------------------------
  Reporter: vivien.millet@… | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: type_traits
   Version: Boost 1.60.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-------------------------

Comment (by vivien.millet@…):

 To be more precise it's when we derive from a class which have its copy
 constructor private (it might be a known case)

 {{{

 class NoCopy
 {
 private:
     NoCopy(const NoCopy&);
 };

 class DerivedNoCopy : public NoCopy
 {

 };

 static const int ok = !boost::is_copy_constructible<NoCopy>::value; // OK

 static const int error =
 !boost::is_copy_constructible<DerivedNoCopy>::value; // error C2248:
 'NoCopy::NoCopy' : cannot access private member declared in class 'NoCopy'

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11959#comment:2>
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:19 UTC