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.