RE: [Boost-Users] Re: boost::noncopyable usage question
Thank you for the clarification. :) -----Original Message----- From: Darin Adler To: Boost-Users@yahoogroups.com Sent: 6/6/2002 12:57 AM Subject: Re: [Boost-Users] Re: boost::noncopyable usage question On Wednesday, June 5, 2002, at 03:14 PM, Michael Davis wrote:
According to the C++ Standard, 12.8/10, the assignment operator cannot
be inherited because if it is not provided, the compiler will provide one implicitly. Or at least, that is my understanding of it.
Given this, how can boost::noncopyable work?
The assignment operator provided by the compiler for the class derived from noncopyable has to copy the part of the object that's inherited from noncopyable. To do that, it has to use the assignment operator from the noncopyable class; but if it's inaccessible, like the private one in noncopyable, it has to report an error. This rule is mentioned in 12.8/14. -- Darin Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
participants (1)
-
Michael Davis