[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 20:37:20 CET 2004


   I'm having problem with destructor suggested by Dave

FunctionWrap::
~FunctionWrap ()
{
  cout << "FunctionWrap::destructor"
       << endl;

  extract<std::auto_ptr<FunctionWrap>&> x(get_owner(this));

  if ( x.check() ) x().release();
}

When I quit python, it appears to be called recursively before things
die on seg fault.





More information about the Cplusplus-sig mailing list