Move Constructors - Converting Lvalues to Rvalues
Bastiaan Veelo
Bastiaan at Veelo.net
Mon Sep 30 17:27:25 UTC 2024
On Monday, 30 September 2024 at 16:05:16 UTC, Walter Bright wrote:
[...]
> P.S. C++ uses the std::move function to do it:
>
> https://learn.microsoft.com/en-us/cpp/standard-library/utility-functions?view=msvc-170#move
>
> which relies on rvalue references:
>
> https://learn.microsoft.com/en-us/cpp/cpp/rvalue-reference-declarator-amp-amp?view=msvc-170
>
> which is a major feature which I prefer to avoid.
I suppose `-preview=rvaluerefparam` is not relevant here, right?
-- Bastiaan.
More information about the Digitalmars-d
mailing list