[C++-sig] Re: Virtual functions with default implementation.

David Abrahams dave at boost-consulting.com
Wed Dec 18 14:08:06 CET 2002


Jacek Generowicz <jacek.generowicz at cern.ch> writes:

> David Abrahams <dave at boost-consulting.com> writes:
>
>> I suggest trying the latest CVS:
>> 
>> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/boost/boost/libs/python/doc/tutorial/doc/class_virtual_functions.html
>
> Thanks.
>
> There's a small typo in the relevant section: "non_copyable" rather
> than "noncopyable".
>
> But if I interpret the docs correctly, then this solution isn't
> entirely appropriate when Base is concrete (which it will be in at
> least one case I have to tackle).

The basic approach works for concrete classes (read to the bottom of
the page), though it's still not properly documented in the tutorial.

Here's a post which describes the correct approach:
http://mail.python.org/pipermail/c++-sig/2002-November/002806.html

Joel, can you update the tutorial appropriately?

Thanks,
-- 
                       David Abrahams
   dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution





More information about the Cplusplus-sig mailing list