SWIG and abstract base class
Helmut Zeisel
helmut.zeisel at aon.at
Fri Mar 8 02:59:51 EST 2002
Luigi Ballabio <ballabio at mac.com> wrote in message news:<mailman.1015519873.10027.python-list at python.org>...
> At 08:01 AM 3/7/02 -0800, Helmut Zeisel wrote:
> >I want to use SWIG to create a Python module for
> >a C++ class hierarchy using abstract base classes:
>
> Helmut,
> I'm assuming that you're using a reasonably recent version of SWIG
> (let's say >= 1.3.9).
1.3.11
>
> class Base {
> private:
> Base();
> public:
> // whatever
> };
>
> hope this helps,
> Luigi
I also had to add a private/protected ~Base(),
but now it works.
Thank you,
Helmut
More information about the Python-list
mailing list