How to pass noncopyable variadic arguments with ref?

tchaloupka chalucha at gmail.com
Thu Nov 3 08:42:05 UTC 2022


On Friday, 21 October 2022 at 12:05:28 UTC, ryuukk_ wrote:
> On Thursday, 20 October 2022 at 14:03:10 UTC, tchaloupka wrote:
>
>     void test(Foo..)(Foo foos)
>
> I don't know if that's the 1:1 alternative, but that doesn't 
> compile
>
>     onlineapp.d(23): Error: struct `onlineapp.Foo` is not 
> copyable because it has a disabled postblit

Yeah, I've ended up with this kind of workaround too.
Posted a bug report: 
https://issues.dlang.org/show_bug.cgi?id=23452



More information about the Digitalmars-d-learn mailing list