Applying Placement New to druntime and phobos

Per Nordlöw per.nordlow at gmail.com
Wed Mar 5 07:29:51 UTC 2025


On Tuesday, 4 March 2025 at 12:22:36 UTC, Manu wrote:
>> Tried converting a couple of usages of `emplace` and 
>> `moveEmplace` in a repo of mine and discovered that I'm 
>> missing a way to express
>>
>> `moveEmplace(x, y)`
>>
>> as
>>
>> `new(y) typeof(y)(__rvalue(x))`
>>
>> . This doesn't always work eventough `y` being assignable from 
>> `x`.
>>
>
> Is it this issue: https://github.com/dlang/dmd/issues/20950 ??

Yes, it is. Thanks.


More information about the Digitalmars-d mailing list