Interfacing with C++ std::shared_ptr and std::unique_ptr

Andre Pany andre at s-e-a-p.de
Wed Jun 10 10:13:11 UTC 2020


On Wednesday, 10 June 2020 at 08:31:47 UTC, Mathias LANG wrote:
> On Wednesday, 10 June 2020 at 06:43:24 UTC, Andre Pany wrote:
>> [...]
>
> Depending on your needs, it might be trivial. We use this, and 
> it works accross all 3 platforms: 
> https://github.com/bpfkorea/agora/blob/ddd65e2fc3975d9c14ad36bcf28e5cd32de08945/source/scpd/Cpp.d#L38-L64
>
> As mentioned, you will need to have the instantiation done on 
> the C++ side, but that's true for any template. Feel free to 
> ask on slack #cpp-interop.

Thanks for all the answers. I will have a look.

Kind regards
Andre


More information about the Digitalmars-d-learn mailing list