[C++-sig] Re: Making copy of function derived from C++ pure virtual function
Paul F. Kunz
Paul_Kunz at slac.stanford.edu
Fri Dec 10 23:01:04 CET 2004
>>>>> On Fri, 10 Dec 2004 14:45:02 -0500, David Abrahams <dave at boost-consulting.com> said:
> Paul F. Kunz wrote:
>>>>>>> On Fri, 10 Dec 2004 07:38:12 -0800, "Paul F. Kunz"
>>>>>>> <Paul_Kunz at slac.stanford.edu> said:
>>
>>>>>>> On Thu, 09 Dec 2004 20:37:18 -0500, David Abrahams
>>>>>>> <dave at boost-consulting.com> said:
>>>> Sorry, this should be:
>>
>>>> class_<FunctionWrap, std::auto_ptr<FunctionWrap> >(
>>>> "FunctionBase", init<FunctionBase const&>())
>>
>>> Ok, that compiles. Obvious no that I see it.
>>
>>> But now at run time I get...
>> Replying to my own item, I got pass the runtime error by doing the
>> following instead of the above...
>>
>> class_ < FunctionBase, std::auto_ptr< FunctionWrap> > (
>> "FunctionBase" )
> Don't do that; the code I suggested was there for a reason.
Ok.
> I think
> I have a bug, but it will help a lot to have a test case. Can you
> back up a step to the previous version that compiled and make a
> reduced test case for me to test my changes against?
I'll try. Frequently, it is hard to pull something out because
large dependency on other parts of a large project. In this case, I
think there's only one external class envolved.
More information about the Cplusplus-sig
mailing list