[Patch/RFC] libstdc++/19495

Benjamin Kosnik bkoz@redhat.com
Thu Jan 20 18:35:00 GMT 2005


> 100% agreed. Summarizing, we have at least two open issues:
> 1- Avoiding _Rep in static memory, probably we can neatly obtain that 
> via a "short-string optimization" type solution.

libstdc++/16612

We should probably put this in enhancement status, not resolved, since
workarounds exist but we'd like to do better. Thoughts?

> 2- Various alignment issues (the last one manifest itself slightly 
> differently than the the very old one).

libstdc++/8670
libstdc++/19495

> In order to fix 2-, basic_string must be profoundly redesigned, as soon 
> as 4.0 branches (and the 4.0 version of type_traits is more or less 
> final) I really want to seriously start on this big project. If we are 
> lucky, the new design will not be blocked too seriously by 
> __attribute__(aligned)...

100% agreed!

This could initially go in as an extension, if you'd like to work that
way. We could have a __gnu_cxx::basic_string, for instance.

Just a thought.

-benjamin



More information about the Libstdc++ mailing list