[C++-sig] virtual method issue ?

Adrien Saladin adrien-ml at wizzi.net
Sat Mar 17 23:19:31 CET 2007


Le vendredi 16 mars 2007 11:24, Roman Yakovenko a écrit :
> This code should be changed to
>
> return this->get_override("Function")(boost::ref(v), boost::ref(Grad));
>
> By default boost::python::object holds a copy of the instance.

It works perfectly now. Thanks !

> The code generator I created, Py++ is aware to this and generates right
> code. It has GUI, so you can create simple test case and see what code it
> will generate.

I've installed Py++ and I think I will learn many things from it.

Best regards,
Adrien




More information about the Cplusplus-sig mailing list