Annex C (informative)
Compatibility
[diff]
C.4
C++ and ISO C++ 2003
[diff.cpp03]
C.4.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
.