[C++-sig] Re: Making copy of function derived from C++ pure virtual function

Paul F. Kunz Paul_Kunz at slac.stanford.edu
Tue Dec 14 22:18:07 CET 2004


>>>>> On Tue, 14 Dec 2004 15:41:02 -0500, David Abrahams <dave at boost-consulting.com> said:

>> 
>> py_result = my_class();
>> 
>> i.e., no arguments.

> No, that's wrong.  That line is supposed to call the exposed copy
> ctor.

   I restored 

py_result = my_class ( self )

and exposed the copy constructor as you suggested.   This works.

Thanks again, Dave.



More information about the Cplusplus-sig mailing list