[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 {
   public:
     C();
     virtual ~C();
     virtual int f();
   };

   class C1 : public C {
   public:
     C1();
   };

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++.
-- 
Pertti



More information about the Cplusplus-sig mailing list