----- import std.array; import std.conv; import std.path; void main() { // ng: toImpl template instance failure string[] x = to!(string[])(pathSplitter("/foo/bar")); // ng: can't convert const(char[])[] => string[] string[] y = pathSplitter("/foo/bar").array; // ng: toImpl template instance failure const(char[])[] z = to!(const(char[])[])(pathSplitter("/foo/bar")); } ----- I'm not sure why .array returns const(char[])[] instead of const(char)[][]. Either way, to!() still won't work.
pull : https://github.com/dlang/phobos/pull/6679
The second error is already fixed. The first and the last are not bugs but enhancements since `to` is not supposed to convert ranges to array at all.
`to` was tried as a workaround i think so the problem is gone.