[C++-sig] Py++ and protected destructors

Pertti Kellomäki pertti.kellomaki at tut.fi
Thu Sep 17 11:23:33 CEST 2009

Roman Yakovenko wrote:
> Before I modified the code, I suggest you to submit a small working
> example which shows the problem, so we can solve the right problem.

Ok, here's a distilled code example. Running

   python dest.pypp && gcc -c -I/usr/include/python2.6 dest_bindings.cpp

yields the error message

   dest.hh:3: virhe: ”virtual A::~A()” is protected

This is with the latest svn version of py++.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dest.hh
Type: text/x-c++hdr
Size: 87 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20090917/1c657a1d/attachment.hh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dest.pypp
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20090917/1c657a1d/attachment.asc>

More information about the Cplusplus-sig mailing list