Bug 18044 – std.conv.to for implicitly convertible associative arrays

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-12-07T16:01:45Z
Last change time
2017-12-18T22:57:28Z
Assigned to
No Owner
Creator
John Colvin

Comments

Comment #0 by john.loughran.colvin — 2017-12-07T16:01:45Z
This should pass, but currently matches both the implicit conversion and the associative array overloads of toImpl @safe unittest { import std.algorithm.comparison : equal; import std.array : byPair; int[int] a; assert(a.to!(int[int]) == a); assert(a.to!(const(int)[int]).byPair.equal(a.byPair)); }
Comment #1 by john.loughran.colvin — 2017-12-07T16:04:00Z
Comment #2 by github-bugzilla — 2017-12-07T17:27:59Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/0ca50877374489ee4639afe29cd656abcfc0d5ba fix Issue 18044 - std.conv.to for implicitly convertible associative arrays https://github.com/dlang/phobos/commit/9679020d5770c0677116a603b82d7c88cae05913 Merge pull request #5909 from John-Colvin/toImplAssocArray Fix Issue 18044: std.conv.to for implicitly convertible associative arrays merged-on-behalf-of: Sebastian Wilzbach <[email protected]>
Comment #3 by github-bugzilla — 2017-12-18T22:57:28Z
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/0ca50877374489ee4639afe29cd656abcfc0d5ba fix Issue 18044 - std.conv.to for implicitly convertible associative arrays https://github.com/dlang/phobos/commit/9679020d5770c0677116a603b82d7c88cae05913 Merge pull request #5909 from John-Colvin/toImplAssocArray