[Issue 15734] Need this for map

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jan 15 15:02:03 PST 2017


https://issues.dlang.org/show_bug.cgi?id=15734

b2.temp at gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |b2.temp at gmx.com
         Resolution|---                         |INVALID

--- Comment #3 from b2.temp at gmx.com ---
foo is a member function but map takes an alias to a function that must be
known at compile time. change definition to

static int foo(int a) { return a; }

and it works

--


More information about the Digitalmars-d-bugs mailing list