May 10, 2018Disabling copy constructor and passing as rvalue
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!
Copyright © 1999-2018 by the D Language Foundation