C++ library says to delete data that it allocates
w0rp
devw0rp at gmail.com
Sun Sep 22 16:12:55 PDT 2013
On Sunday, 22 September 2013 at 23:09:52 UTC, Charles Hixson
wrote:
> I'm trying to use a C++ library that allocates data and returns
> a pointer to it. It tells me that I should delete the data
> when I'm through with it.
>
> Can I do this from within D? Or do I need to write some C++
> code to manage the delete, and pass the pointer on to it?
You can't use delete straight from D, so I'd write the delete in
C++ and pass the pointer back to C++, like you say.
More information about the Digitalmars-d-learn
mailing list