Applying Placement New to druntime and phobos

Paul Backus snarwin at gmail.com
Wed Mar 5 01:54:50 UTC 2025


On Wednesday, 5 March 2025 at 01:53:02 UTC, Paul Backus wrote:
>
> For the sake of simplicity, it would be better to start with 
> the overloads of `emplace` that create a brand-new object, 
> without moving an existing one. That way, you will not have to 
> deal with the added complication of `__rvalue` (which itself is 
> still a work-in-progress).

Alternatively, if you need to move something, you can just use 
`core.lifetime.move` for now. Replacing `move` with `__rvalue` 
can be done as a separate step.


More information about the Digitalmars-d mailing list