[C++-sig] Exposing inherited members with Py++

Pertti Kellomäki pertti.kellomaki at tut.fi
Thu Sep 20 11:29:50 CEST 2007

Is there a way to expose inherited members without exposing
the classes they were inherited from? If I have the following
classes and expose them using Py++, C1::f() is exposed:

   class C {
     virtual ~C();
     virtual int f();

   class C1 : public C {

However, if I exclude class C, C1::f() is no longer exposed. If
I repeat f() in the declaration of C1, it is exposed, but this is
not really an option for me.

The reason for excluding C is that it is defined in another library,
separately exposed using Py++.

More information about the Cplusplus-sig mailing list