[C++-sig] Boost function call error

Mike Rovner mrovner at propel.com
Wed Aug 24 22:20:29 CEST 2005


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