[Issue 9582] std.algorithm.map!(T) cause CT error for fixed size arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 24 08:08:13 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9582
Peter Alexander <peter.alexander.au at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter.alexander.au at gmail.co
| |m
--- Comment #2 from Peter Alexander <peter.alexander.au at gmail.com> 2013-02-24 08:08:11 PST ---
This is by design. map expects an input range. Static arrays are not input
ranges. You have to take a slice.
auto ms = map!"a*a"(smt[]); // note additional []
reduce only requires an iterable, which includes static arrays.
--
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