opEquals(const ref yadaYada)

Richard Webb webby at beardmouse.org.uk
Sat Dec 12 07:46:00 PST 2009


Hi,
I mentioned this problem in the thread @ 
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=18405

I ran into the rvalue problem while trying to get Juno to compile, and found that it builds ok if you declare both

bool opEquals(const ref Foo rhs) const

and

bool opEquals(Foo rhs) const




More information about the Digitalmars-d mailing list