Re: [C++-sig] Calling python virtual function from C++

2009-02-06 Thread William Marié
Thank you very much it was exatly that :) David Abrahams a écrit : on Thu Jan 29 2009, William Marié wrote: Hi David, Here is the reproducible test ( just change the boost.strap and the python paths in the jamroot ) !! Thanks for your time void testVirtualPure( BaseCmp* p

Re: [C++-sig] Calling python virtual function from C++

2009-01-29 Thread David Abrahams
on Thu Jan 29 2009, William Marié wrote: > Hi David, > > Here is the reproducible test ( just change the boost.strap and the python > paths in > the jamroot ) !! > Thanks for your time void testVirtualPure( BaseCmp* pBaseCmp ) { this->get_override("testVirtualPu

Re: [C++-sig] Calling python virtual function from C++

2009-01-29 Thread William Marié
Hi David, Here is the reproducible test ( just change the boost.strap and the python paths in the jamroot ) !! Thanks for your time David Abrahams a écrit : on Wed Jan 28 2009, William Marié wrote: I need to call my testVirtualPure function from C++ side : BaseCmp* bc = BaseCmp(); Bas

Re: [C++-sig] Calling python virtual function from C++

2009-01-28 Thread David Abrahams
on Wed Jan 28 2009, William Marié wrote: > I need to call my testVirtualPure function from C++ side : > BaseCmp* bc = BaseCmp(); > Base* b = Base(); > b->testVirtualPure( bc ); > > But this causes an error : > TypeError: No to_python (by-value) converter found for C++ type: class > BaseCmp Th

[C++-sig] Calling python virtual function from C++

2009-01-28 Thread William Marié
Hi, I have a little problem, i can't find a way to call a pure virtual function from C++ on a Python object taking a specific class object as argument : // Base Class for a component class BaseCmp { public: ~BaseCmp() {}; }; // Base class class Base { public: Base() {};