Change: Remove the
basic_string::reserve() overload with no parameters
. Rationale: The overload of
reserve with no parameters is redundant
. The
shrink_to_fit member function can be used instead
. Effect on original feature: A valid C++ 2023 program that calls
reserve()
on a
basic_string object may fail to compile
. The old functionality can be achieved by calling
shrink_to_fit() instead,
or the function call can be safely eliminated with no side effects
.