[Issue 5940] Cannot create arrays of std.algorithm.map

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 8 22:54:08 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5940


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei at metalanguage.com,
                   |                            |bugzilla at digitalmars.com


--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> 2011-05-08 22:50:11 PDT ---
Reduced test case:

template map(fun...)
{
    auto map(double[] r)
    {
        struct Result
        {
            this(double[] input)
            {
            }
        }

        return Result(r);
    }
}


void test()
{
    double[] x;
    auto a = [map!"a"(x)];
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list