Re: [Boost-bugs] [Boost C++ Libraries] #11141: boost::noncopyable does not prevent adding copy constructor to derived class

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11141: boost::noncopyable does not prevent adding copy constructor to derived class
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-26 15:24:55


#11141: boost::noncopyable does not prevent adding copy constructor to derived
class
-------------------------------------------+---------------------------
  Reporter: Andreas Fenkart <afenkart@…> | Owner: no-maintainer
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: utility
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------+---------------------------

Comment (by marshall):

 My opinion on this is "close as not a bug".

 We don't prevent people from acting maliciously.

 `noncopyable` makes the copy constructor and assignment operators private
 (and doesn't implement them), so if you call them you get a compile (or
 link) error. If you go and implement your own copy constructor in a class
 that is derived from `noncopyable`, then my belief is that you wanted to
 be able to copy those objects.

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