Comment #0 by andrej.mitrovich — 2011-12-19T12:38:05Z
module test;
import std.algorithm;
import std.array;
import std.file;
void main()
{
auto dFiles = filter!`endsWith(a.name,".d")`(dirEntries(".",SpanMode.depth));
auto arr1 = array(dFiles); // OK
auto arr2 = array(dirEntries(".",SpanMode.depth)); // NG??
}
test.d(11): Error: template std.array.array(Range) if (isIterable!(Range) && !isNarrowString!(Range)) does not match any function template declaration
test.d(11): Error: template std.array.array(Range) if (isIterable!(Range) && !isNarrowString!(Range)) cannot deduce template function from argument types !()(DirIterator)
Comment #1 by eco — 2012-02-21T19:55:36Z
Still present in 2.058.
Comment #2 by github-bugzilla — 2012-03-17T10:20:13Z