Should it compile?

Paul Backus snarwin at gmail.com
Sun Jun 7 23:52:44 UTC 2020


On Sunday, 7 June 2020 at 23:09:41 UTC, Jack Applegame wrote:
>     const NonCopyable const_a;
>     auto const_ua = Unique!(const NonCopyable)(move(ca)); // 
> error, why???

You can't move from a const variable.


More information about the Digitalmars-d-learn mailing list