This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi,
It looks like an intended empty base class optimization has not been finished for struct _Rb_tree_impl in stl_tree.h. If it is so indeed, this patch completes it.
main trunk: sizeof(std::set<int>) == 72 sizeof(std::set<int, bool(*)(int, int)>) == 72
with patch applied: sizeof(std::set<int>) == 64 sizeof(std::set<int, bool(*)(int, int)>) == 72
Compile tested only.<stl_tree.patch>
Thanks, Howard
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |