Passing class instance as void* and casting back

Jonas Drewsen jdrewsen at nospam.com
Sat Nov 5 13:04:24 PDT 2011


Den 05-11-2011 21:00, Jonas Drewsen skrev:
> Den 05-11-2011 09:38, Maxim Fomin skrev:
>> Hello. I use curl library and need to overwrite default behavior of
>> data/headers writing.
> <snip>
>
>> So, how can I pass an object through void* or may be there is another
>> way to tell
>> header_func() which object should be used?
>
> You can use this working curl wrapper (from phobos review 2) as
> inspiration.
>
> /Jonas

And the link ;)

https://github.com/jcd/phobos/blob/curl-wrapper/etc/curl.d




More information about the Digitalmars-d mailing list