Annex C (informative)
Compatibility
[diff]
C.6
C++ and ISO C++ 2003
[diff.cpp03]
C.6.11
[strings]
: strings library
[diff.cpp03.strings]
1
#
Affected subclause:
[string.
classes]
Change:
basic_
string
requirements no longer allow reference-counted strings
.
Rationale:
Invalidation is subtly different with reference-counted strings
.
This change regularizes behavior
.
Effect on original feature:
Valid C++ 2003 code may execute differently in this revision of C++
.
2
#
Affected subclause:
[string.
require]
Change:
Loosen
basic_
string
invalidation rules
.
Rationale:
Allow small-string optimization
.
Effect on original feature:
Valid C++ 2003 code may execute differently in this revision of C++
.
Some
const
member functions, such as
data
and
c_
str
, no longer invalidate iterators
.