Move Constructors - Converting Lvalues to Rvalues
Dukc
ajieskola at gmail.com
Wed Oct 2 08:52:19 UTC 2024
On Tuesday, 1 October 2024 at 17:41:34 UTC, Walter Bright wrote:
> On 10/1/2024 12:25 AM, Dukc wrote:
>> You can make it to work with a compiler instrinsic. The
>> intrinsic would either be an UDA applied to `move` that allows
>> the compiler to make those assumptions, or an intrinsic
>> function that works along the lines of `nove` and
>> `moveEmplace`. The public DRuntime functions would forward or
>> alias to the instrinsic function.
>
> move() is an unhappy maze of templates. We need something a lot
> simpler.
If we'll have a compiler intrinsic function, `move` can be made
much simpler by having it simply call the compiler intrinsic, or
alias to it.
More information about the Digitalmars-d
mailing list