Bypassing the postblit?
Benjamin Thaut
code at benjamin-thaut.de
Sun Dec 29 12:05:56 PST 2013
Am 29.12.2013 20:26, schrieb monarch_dodra:
>
> Even with that, you'd still have to make sure the newly inserted
> indirection gets initialized *prior* to the copy, so it's back to square
> one...
>
For that you can easily disable the default constructor. And then make
the user call a constructor of your choosing that way. I thought the
entire point of this preblit was that both the original and the copy
point to the same instance, when the instance is actually requested.
Kind Regards
Benjamin Thaut
More information about the Digitalmars-d
mailing list