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

English, Mark Mark.English at rbccm.com
Fri Oct 12 18:33:55 CEST 2007

X-Replace-Address: mark.ignorethisbit.english at xxxrbccmxxx.ignorethisbittoo_and_removethosepreceding_xxxs_.com
> -----Original Message-----
> From: c++-sig-bounces at python.org [mailto:c++-sig-bounces at python.org]On
> Behalf Of Matthew Scouten
> Sent: 12 October 2007 17:19
> To: Development of Python/C++ integration
> Subject: [C++-sig] wrapping a function that takes a void*
> I am wraping a function that takes a void* as an argument.
Is an opaque pointer what you're looking for ?

Note there are some potential bugs in this. The PyTypeObject's name causes a crash I believe but I'm using boost 1.32, Python 2.3.6 so it may have been fixed by now in either of those.
For example using the example code:
>>> import opaque_ext
>>> p = opaque_ext.get()
>>> type(p) #Causes an access violation


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