[Issue 5939] Cannot copy std.algorithm.map

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 6 23:19:45 PDT 2011


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


kennytm at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kennytm at gmail.com


--- Comment #1 from kennytm at gmail.com 2011-05-06 23:15:51 PDT ---
The problem isn't copying a map, but initializing the type using 'T xSaved'. If
you use 'T xSaved = x;' it compiles. A reduced example:

-----------------------------
import std.algorithm;
void main() {
    typeof(map!"a"([0])) a;
}
-----------------------------
x.d(3): Error: function std.algorithm.map!("a").map!(int[]).map is a nested
function and cannot be accessed from main
-----------------------------

-- 
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