Summary: map(AA.byValue()) problem
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from 2011-05-07 16:27:16 PDT ---
import std.algorithm;
void main() {
    int[int] hash = [1:2, 3:4];
    auto vals = hash.byValue();
    map!q{a}(vals); // error

The line of code with "map" causes this (DMD 2.053beta):

test.d(5): Error: template!("a").map(Range) if
(isInputRange!(Unqual!(Range))) does not match any function template
test.d(5): Error: template!("a").map(Range) if
(isInputRange!(Unqual!(Range))) cannot deduce template function from argument
types !()(int delegate(int delegate(ref int) dg))

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to