Annex C (informative)
Compatibility
[diff]
C.4
C++ and ISO C++ 2003
[diff.cpp03]
C.4.10
[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 for this International Standard
.
Effect on original feature:
Valid C++ 2003 code may execute differently in this International Standard
.
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 International Standard
.
Some
const
member functions, such as
data
and
c_str
, no longer invalidate iterators
.