[C++-sig] Boost function call error

Dirgesh Patel dirgesh.patel at hp.com
Wed Aug 24 22:35:47 CEST 2005


i get the same error..i was told you have to cast the function name to a ptr 
and can't use (&)

let me know what you think


thanks
d



"Mike Rovner" <mrovner at propel.com> wrote in message 
news:deil0f$93n$1 at sea.gmane.org...
> Dirgesh Patel wrote:
>> so i had this before
>> def("copy", imageMorph_copy, imageMorph_copy()
>> [return_value_policy<manage_new_object>()] );
>>
>> and i changed it to:
>> def("copy", static_cast<bkimage
>> (*)(bkimage,xint32_t,xint32_t,xint32_t,xint32_t,xint32_t,xint32_t)>(imageMorph_copy),
>> imageMorph_copy() [return_value_policy<manage_new_object>()] );
>
> shouldn't that be
>
> def("copy", static_cast<bkimage
> (*)(bkimage,xint32_t,xint32_t,xint32_t,xint32_t,xint32_t,xint32_t)>
> (imageMorph_copy),  &imageMorph_copy,
> return_value_policy<manage_new_object>() ); 






More information about the Cplusplus-sig mailing list