Re: SmartRef: The Smart Pointer In D

Martin Nowak via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat Jan 14 16:54:26 PST 2017


On 01/14/2017 04:41 PM, Dmitry Olshansky wrote:
> Not quite true, there is at least one huge advantage - thread-locality.
> That is C++ smart_ptr has to be atomic, while its D counter part may
> safely be non-atomic because everything is TLS be default.

And you can add a shared postblit overload for when it's not thread
local ;).


More information about the Digitalmars-d-announce mailing list