Disabled and enabled copy constructors and .dup

Per Nordlöw per.nordlow at gmail.com
Tue Oct 24 07:33:43 UTC 2017


If I have a `struct X` (container in my case) with disabled 
copying (postblit) and instead a .dup property, is it somehow 
possible, unsafe or not, to have `X` as a member of another 
`struct Y` with an enabled copy constructor which calls `X.dup`?


More information about the Digitalmars-d-learn mailing list