[C++-sig] setting up held smart pointer for pure virtual base class

Scott McKay skottmckay at gmail.com
Thu Oct 13 17:28:12 CEST 2005


> > I have a pure virtual base class (so no_init is set).
> There's no such thing. I assume you mean an abstract base class?
>

Sorry for the loose terminology. Yes, an abstract base class.

> The base class is held by a smart pointer.
>
> You mean in its Python wrapper class?

Correct.

> I want to implement that class in python.
>
> Do you mean you want to derive from that class in python?
>

Yes. Derive from it to implement the interface it defines.

You need to expose an __init__ so derived classes can initialize the
> base; there are no two ways about it.


Fair enough. Thanks for the answer (and attempting to translate my poor
terminology).

S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20051013/5c98aa99/attachment.htm>


More information about the Cplusplus-sig mailing list