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] |
We might also want to mark operator[] with the "always_inline" attribute, so that we never get two conflicting definitions of the same code.
I'm not 100% sure to follow your reasoning here: actually, this specific
issue (debug-mode vs string) is *not* limited to operator[]... This
thread started with that subtle issue about the v3 extension, then
Jonathan moved to the much more general problem with debug-mode
basically not active for basic_string<char> and basic_string<wchar_t> ,
being the latter instantiated in the library.
We have *a lot* of _GLIBCXX_DEBUG_* and I'm not sure we can enforce inlining for all of them... If this is *really* a requirement from the ODR point of view, I'm not sure, on the spot: I'd like to hear the opinion of the list...
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |