Bug 8284 – [std.container] can't define Array!T, if T is Tuple!(size_t, size_t)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-06-22T08:47:00Z
Last change time
2012-11-15T18:23:14Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
tobias
Depends on
8522

Comments

Comment #0 by tobias — 2012-06-22T08:47:21Z
alias Tuple!(size_t, size_t) Pair; void main() { Array!Pair arr; } /usr/include/d/std/container.d(1653): Error: cannot compare const(Tuple!(ulong,ulong)[]) and const(Tuple!(ulong,ulong)[]) bug.d(12): Error: template instance std.container.Array!(Tuple!(ulong,ulong)) error instantiating
Comment #1 by k.hara.pg — 2012-08-16T01:56:00Z
Comment #2 by github-bugzilla — 2012-09-16T19:22:37Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/3c878f4b90670b46854fc66a09a8f68995fdb4ea Fix bug #8284 by adding const opEquals to std.typecons.Tuple To fix bug #8284 std.typecons.Tuple needs to have a const opEquals. Adds also a testcase for std.algorithm using std.typecons.Tuple as element type for std.container.Array. This pull request needs a dmd with pull 1075 to fix issue 8522. https://github.com/D-Programming-Language/phobos/commit/1122af373bbf1e805b4004835b2132bef8ae1a69 Merge pull request #750 from Panke/fix-8284 Fix bug #8284 by adding const opEquals to std.typecons.Tuple