[Issue 8896] New: RedBlackTree.opEquals has byref semantics

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 25 22:12:08 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8896

           Summary: RedBlackTree.opEquals has byref semantics
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: ellery-newcomer at utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2012-10-25 22:12:06 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list