Issue ID: 19077
           Summary: DirIterator cannot be used as range
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos

`std.file.dirEntries` should return an input range, but this code does not

auto range = dirEntries("files/", SpanMode.depth)
        .map(a => a);

Error: template cannot deduce function from
argument types !()(DirIterator, void), candidates are:
/usr/include/dmd/phobos/std/algorithm/iteration.d(457,1): if (fun.length >= 1)


Reply via email to