[C++-sig] Re: Wrapping Just an Abstract Base

Thomas Muldowney temas at box5.net
Sat Jul 26 22:16:47 CEST 2003


On Sat, 2003-07-26 at 13:31, David Abrahams wrote:
> This code won't compile, will it?
> 

It does.

> Your code isn't demonstrating much at all, since it doesn't show an
> example of what you're trying to accomplish.  Maybe someone else can
> help you; I have no clue what you're after, sorry!
> 
> P.S. Did you try what I suggested in my previous reply?
> 
>   class_<Abstract, non_copyable>("Abstract", no_init)
>        .def("pure_virtual_function1", &Abstract::pure_virtual_function1)
>        .def("pure_virtual_function2", &Abstract::pure_virtual_function2)
>        ...
>        ;

Apologies for the unclear code, and the suggestion does work, so thanks.

--temas







More information about the Cplusplus-sig mailing list