Bug 8705 – std.conv.to bug, from documentation

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-09-21T11:47:00Z
Last change time
2012-12-16T23:18:28Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
monarchdodra

Comments

Comment #0 by monarchdodra — 2012-09-21T11:47:23Z
The example in conv's documentation does not compile. Arguably, it should. As discussed in this pull request: https://github.com/D-Programming-Language/phobos/pull/811 ---- int[string][double[int[]]] a; auto b = to!(short[wstring][string[double[]]])(a); ---- src\phobos\std\conv.d(1383): Error: result[to(k1)] isn't mutable ----
Comment #1 by monarchdodra — 2012-10-04T12:51:46Z
Comment #2 by github-bugzilla — 2012-10-05T04:39:14Z
Comment #3 by k.hara.pg — 2012-10-05T22:51:02Z
Comment #4 by github-bugzilla — 2012-10-06T21:32:26Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/7afe2408dc1bbe91983314b46845febff00912e7 fix Issue 8705 - std.conv.to bug, from documentation Mutable care is just necessary for value type, and doesn't need for key types. https://github.com/D-Programming-Language/phobos/commit/0e22a37c8359c39fa8aca87212a77819ef136658 Merge pull request #844 from 9rnsr/fix8705 More fix for Issue 8705 - std.conv.to bug, from documentation
Comment #5 by monarchdodra — 2012-12-16T23:18:28Z
Confirmed resolved by monarchdodra on 17 dec 2012.