Applying Placement New to druntime and phobos

Manu turkeyman at gmail.com
Tue Mar 4 12:22:36 UTC 2025


On Tue, 4 Mar 2025 at 21:25, Per Nordlöw via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

> On Tuesday, 4 March 2025 at 01:27:29 UTC, Manu wrote:
> > Please do contribute to this effort if you're enthusiastic! I
> > have very
> > little free time rn.
>
> 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 ??
If not, please post repro so I can investigate.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20250304/597ba48f/attachment.htm>


More information about the Digitalmars-d mailing list