std.container and classes
Froglegs
lugtug at gmail.com
Tue Dec 20 13:22:55 PST 2011
I don't really think ref counted struct vs class is fair,
because in reality most containers don't need ref counting. I
can't think of one instance in C++ where I stuck a container
directly in a shared_ptr or anything similar.
Also as far I as I can tell making it a class would bloat it with
unnecessary data(vtable), and being it is common to have many
many instances of these containers, that doesn't sound like such
a great thing.
More information about the Digitalmars-d
mailing list