If you export an abstract class, create an object from python and call its
virtual from C++ it should not work without the default implementation.

On Mon, Aug 17, 2015 at 8:03 AM, Stefan Seefeld <ste...@seefeld.name> wrote:

> Hi,
>
> I'm reviewing the Boost.Python tutorial, and I'm stumbling over the
> section on "Virtual Functions with Default implementations"
> (
> http://boostorg.github.io/python/doc/html/tutorial/tutorial/exposing.html#tutorial.exposing.virtual_functions_with_default_i
> ).
> It mentions the need to provide a separate default implementation
> function as third argument to "def()", without explaining why that is
> needed.
> In fact, I'm trying various alternatives (abstract, non-abstract), and I
> can't find a need for it. All my tests work fine without it.
>
> Does anyone know why this is needed, and could perhaps even provide a
> little test case ?
>
> Thanks,
>         Stefan
>
> --
>
>       ...ich hab' noch einen Koffer in Berlin...
>
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig@python.org
> https://mail.python.org/mailman/listinfo/cplusplus-sig
>
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
https://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to