SImple C++ code to D

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 17 06:43:16 PDT 2014


On Thursday, 17 July 2014 at 13:40:20 UTC, bearophile wrote:
> Meta:
>
>> For `Tuple!(DWORD, DWORD*)[] addrs;`, DWORD* is not same as 
>> shared_ptr<DWORD>. It's important to keep that in mind.
>
> OK. How do you suggest to translate it in D?
>
> Bye,
> bearophile

I don't know. I just wanted to make sure OP knew that raw 
pointers in D are not analogous to C++ shared_ptr.


More information about the Digitalmars-d-learn mailing list