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]

string/list ABI changes


On 12/15/2012 07:00 AM, Paolo Carlini wrote:
today I prepared a patch adding again a data member to std::list in
C++11 mode to implement the O(1) list::size() requirement of C++11. This
time of course using the new attribute, on std::list itself (not on
specific member functions as in std::complex, which you handled a few
weeks ago). Below you can find what I'm finishing testing, rather
straightforward stuff.

Now that we're getting close to stage 1, I'd like to talk about this some more so it has lots of time to mature before 4.9. As I believe I was saying before, I think we want the change to be based on a #define rather than on the -std flag, so that C++98 and C++11 code stay compatible with each other, and people that need compatibility with older code can select the old ABI if they prefer. And the library should have definitions of both versions.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]