D's equivalent to C++'s std::move?

rsw0x via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 3 19:59:36 PST 2016


On Thursday, 4 February 2016 at 03:57:18 UTC, maik klein wrote:
> On Thursday, 4 February 2016 at 03:52:23 UTC, rsw0x wrote:
>> On Thursday, 4 February 2016 at 03:45:57 UTC, maik klein wrote:
>>> [...]
>>
>> Those are intended not to be copied, they must be explicitly 
>> moved with std.algorithm's move
>
> I don't understand what you are saying. Are you saying that I 
> can use them with Arrays, Tuples etc and I just have to use 
> move somehow? If that is the case please show me because I have 
> already wasted a lot of time into recreating Array, Tuple etc.
>
> Or are you saying that I they are not compatible with Phobos?

Can you show me an example of the issue you're having? You might 
be hitting the same bug as already seen in this thread.
Theoretically they should be workable with move.
...Theoretically : )


More information about the Digitalmars-d mailing list