← Back to index
|
Original Bugzilla link
Bug 6480 – std.array.array can't handle const
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-08-12T12:22:00Z
Last change time
2013-01-25T14:22:00Z
Assigned to
nobody
Creator
ellery-newcomer
Comments
Comment #0
by ellery-newcomer — 2011-08-12T12:22:59Z
a simple example: import std.array; const(int)[] arr = [1,2,3]; auto x = array(arr); yields: /usr/include/d/std/array.d(61): Error: result[i] isn't mutable test.d(4): Error: template instance std.array.array!(const(int)[]) error instantiating
Comment #1
by lovelydear — 2012-04-27T08:51:16Z
Also fails on 2.059
Comment #2
by andrej.mitrovich — 2013-01-25T14:22:00Z
Works in 2.060+.