Bug 9836 – std.array.popFront does not work with alias this.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-30T06:51:00Z
Last change time
2013-04-05T06:56:57Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
tobias

Comments

Comment #0 by tobias — 2013-03-30T06:51:40Z
--- struct Wrapper { int[] data; alias data this; }; void main() { Wrapper w = Wrapper([1,2,3,4]); std.array.popFront(w); // compile time error: no working overload for popFront. --- std.array.popFront should work with subtypes of T[] created via alias this. See also: #9835
Comment #1 by k.hara.pg — 2013-03-30T09:10:00Z
Comment #2 by github-bugzilla — 2013-04-05T06:56:26Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/53640bf04657e6a8933152b072010d15ac0a8a1c fix Issue 9836 - std.array.popFront does not work with alias this. empty, front, popFront, back, popBack should work with alias this type. https://github.com/D-Programming-Language/phobos/commit/41561d8cf8aa7b69bbebb49f8b8e662a60f8496e Merge pull request #1233 from 9rnsr/fix9836 Issue 9836 - std.array.popFront does not work with alias this.