How do I use `__rvalue` expression on a struct property?

Paul Backus snarwin at gmail.com
Sun Apr 27 01:57:38 UTC 2025


On Sunday, 27 April 2025 at 02:41:53 UTC, Walter Bright wrote:
> Postblits and rvalue references do not mix.
>
> Move constructors and rvalue references are a replacement for 
> postblits. We didn't make any effort to reconcile the two.
>
> If you're going to use move constructors and rvalue references, 
> just delete the postblit code from the struct hierarchy.
>
> Postblits are now an obsolete feature, left for legacy code.

Unfortunately, until druntime is updated to fully support copy 
constructors, it will be necessary to continue using postblits in 
new code.


More information about the Digitalmars-d mailing list