Re: [pygccxml-development] Wrapping abstract C++ classes
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2007-05-05 17:41:30
|
On 5/5/07, Gustavo Carneiro <gjc...@gm...> wrote: > Is it possible to wrap a C++ class that has pure virtual functions? I am > getting a compilation error below; what should I do? > > PS: those pure virtual methods are being exclud()ed by me. If you exclude them, than I guess you don't want Python user to create instances of the class and derive from it. If I am right, than you should use no_init: http://boost.org/libs/python/doc/v2/class.html. The only way to tweak Py++ to generate no_init for the class is to exclude all class constructors. HTH. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |