On 07/27/2016 04:51 AM, drug wrote:

> cfoo.copy(foo); // fails to compile because phobos in case of array uses
>                 // array specialization and this specialization fails
>                 // see
> https://github.com/dlang/phobos/blob/v2.071.1/std/algorithm/mutation.d#L333

Thanks for explaining further. Yes, this is a bug. Although areCopyCompatibleArrays!(const(Foo)[], Foo[]) is true, std.algorithm.copy of that specialization fails. Please create a bug report at

  https://issues.dlang.org/

Thank you,
Ali

Reply via email to