This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++/8230: Buggy allocator behaviour
>There is a simpler way. If the containers use their Allocator as a
>private base class instead of a member, the code is a lot cleaner.
>
>I did a treatment of this and found, although the code looked cleaner
>to my eye, there was no significant advantage in terms of time or space
>(at least in 3.0, when I ran the tests). I did not measure compile
>time differences.
>
>I could try to dig up the treatment if you want an example of what I'm
>talking about.
Please, I'd like to see it.
-benjamin