Applying Placement New to druntime and phobos
Manu
turkeyman at gmail.com
Thu Mar 6 08:16:28 UTC 2025
On Wed, 5 Mar 2025 at 17:31, Per Nordlöw via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:
> 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.
>
Walter seems preoccupied at the moment, and I've been working on the move
semantics stuff. If you want to have a go at this bug, that'd be really
cool. I imagine it's probably a trivial fix; finding it is always the hard
part :P
I don't know DMD well enough to have any intuition for the codebase, so
everything takes me forever to isolate...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20250306/e92219ed/attachment.htm>
More information about the Digitalmars-d
mailing list