RedBlackTree and myClass
AntonSotov via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jan 3 02:55:05 PST 2016
import std.container.rbtree;
class myClass {
string str;
}
int main()
{
auto tree = new RedBlackTree!myClass;
return 0;
}
Error: mutable method object.Object.opCmp is not callable using a
inout object
Error: template instance std.functional.binaryFun!("a < b", "a",
"b").binaryFun!(inout(myClass), myClass) error instantiating
/////////////////////////////////////////
How to use RedBlackTree of the objects of of its class?
More information about the Digitalmars-d-learn
mailing list