[C++-sig] Boost function call error

Mike Rovner mrovner at propel.com
Thu Aug 25 00:28:21 CEST 2005


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

right, delete one extra pointer then:

def("copy", static_cast<bkimage
  (*)(bkimage,xint32_t,xint32_t,xint32_t,xint32_t,xint32_t,xint32_t)>
   (imageMorph_copy),
return_value_policy<manage_new_object>() );




More information about the Cplusplus-sig mailing list