On 2016-04-28 8:53 AM, smaug wrote:
> On 04/28/2016 08:00 AM, Gerald Squelart wrote:
> 
>> Because sometimes the function will choose not to actually move from
>> an rvalue-ref
> 
> FWIW, this is the reason why I think Move is broken by definition. Move
> doesn't move anything.
> It should have been designed differently, so that a temporary object is
> created to ensure move is always happening or something like that
> (though, that might lead to leaks in some cases).

The analysis that I suggested can help with enforcing that a Move()
cannot be used in cases where the code is not respecting move semantics,
so it should help with your concern (which I do share.)

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to