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

William Marié william.marie at gmail.com
Thu Jan 29 12:27:38 CET 2009


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é <william.marie-AT-gmail.com> 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
>>     
>
> The above doesn't compile, so you can't possibly be getting that
> TypeError from it.  Please post the exact complete, reproducible example
> that causes youi problems, after reducing it to a minimal test case.
>
> Thanks,
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: testboost.rar
Type: application/octet-stream
Size: 1761 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20090129/934dedde/attachment.obj>


More information about the Cplusplus-sig mailing list