[C++-sig] inheritance and polyphormism

Roman Yakovenko roman.yakovenko at gmail.com
Mon Jun 11 13:20:57 CEST 2007


On 6/11/07, Luca Sbardella <luca.sbardella at gmail.com> wrote:
> The link doesn't answer the question, or at least I do not see the answer.
>
> At first, I though that using the following approach would work
>
>
>  class derived_wrap: public derived, public
> boost::python::wrapper<derived>  {
>    void method2() {....}
>  };

You can derive from boost::python::wrapper< base > class too. I think
this will do what you want.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list