[C++-sig] wrapping a function that takes a void*

English, Mark Mark.English at rbccm.com
Fri Oct 12 18:47:49 CEST 2007


X-Replace-Address: mark.ignorethisbit.english at xxxrbccmxxx.ignorethisbittoo_and_removethosepreceding_xxxs_.com
> No, I need the opposite of that. I have a reference to some python
> object (any python object) that needs to be passed to a c++ function
> expecting a (void *). Later, that object will be handed back to python
> as a reference again.

Ok. How about:
int Special_wrapper::fooRequest(boost::python::object objUserData)
{
	return  fooRequest((void*) objUserData.ptr());
}
______________________________________________________________________

This email is intended only for the use of the individual(s) to whom it is addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited.If you receive This e-mail in error, please advise immediately and delete the original message.
This message may have been altered without your or our knowledge and the sender does not accept any liability for any errors or omissions in the message.



More information about the Cplusplus-sig mailing list