Bug 8896 – RedBlackTree.opEquals has byref semantics

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-25T22:12:00Z
Last change time
2012-10-28T16:01:25Z
Assigned to
nobody
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2012-10-25T22:12:06Z
code: import std.container; import std.stdio; void main() { auto a = make!(RedBlackTree!int)(1,2,3,4); auto b = make!(RedBlackTree!int)(1,2,3,4); writeln(a == b); } result: false should be: true prognosis: RedBlackTree.opEquals has not been overridden from Object.opEquals off topic: Hi Steve, guess what I'm going to be doing with multi_index sometime this week.
Comment #1 by hsteoh — 2012-10-26T22:21:17Z
Comment #2 by github-bugzilla — 2012-10-28T09:00:42Z
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/1b7e7eb506baef185f94298af7a534cb13e5bf66 Merge pull request #900 from quickfur/rbtree_opEquals Implement RedBlackTree.opEquals ... (issue 8896)