std.container.RedBlackTree versus C++ std::set
Ivan Kazmenko
gassa at mail.ru
Thu Feb 14 07:11:42 PST 2013
> If I use (as you do)
> ----
> this(ref this) {
> ----
> I get 0 as output. (dmd 2.062 beta1)
> If I remove the 'ref' I get 11389556.
Ouch, sorry! That's a copy & paste bug I introduced when posting
here.
Actually, I use this (this) of course. I tried this (ref this)
at some point, it does indeed compile surprisingly, but it's not
what gets called on copying (and thus is of no use).
More information about the Digitalmars-d-learn
mailing list