Disabling copy constructor and passing as rvalue

ANtlord antlord92 at gmail.com
Thu May 10 17:38:16 UTC 2018


Hello, everyone!

Short time ago I got a problem creating a container that is felt 
by structure instances of a structure type has disabled copy 
constructor. Actually it is felt by a rvalue instead of an 
instance. I realize that disabling of copying means denying to 
pass an instance by lvalue but there is passing by rvalue that 
means a container owns the instance and as far as I see it's 
supported by dmd.

So... does somebody know any way or any library that implemented 
containers that are able to store non-copyable instances passed 
by rvalue?

Thanks in advance!


More information about the Digitalmars-d-debugger mailing list