Bug 4798 – std.algorithm.map unusable for ranges with const elements
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-09-03T04:16:00Z
Last change time
2013-02-26T09:09:58Z
Assigned to
andrei
Creator
pelle.mansson
Comments
Comment #0 by pelle.mansson — 2010-09-03T04:16:10Z
std.algorithm.map uses a cache internally, and can therefore not be used with ranges of const elements.
I feel this limitation is somewhat unfounded. Map does not need a cache.