smart pointer for interior pointers

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Wed May 27 20:13:36 PDT 2015


On Wed, 27 May 2015 17:31:32 -0600, Steven Schveighoffer wrote:

> But we can solve this with a postblit:

seems that you forgot about "move" semantics for structs. under some 
conditions struct can be "moved", not "copied", so it `memcpy`ed and no 
postblit will be called.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150528/8bf83e8a/attachment.sig>


More information about the Digitalmars-d mailing list