From 0a99ad5c52caa06c113b1889bbe6634812b89be5 Mon Sep 17 00:00:00 2001
From: Jonathan Wakely string is Copy-On-Write in GCC 3.
-
In C++11 mode you can call
- s.shrink_to_fit() to achieve the same effect as
+
From GCC 4.5 in C++11 mode you
+ can call s.shrink_to_fit() to achieve the same effect as
s.reserve(s.size()).
A common lament seen in various newsgroups deals with the Standard
diff --git a/libstdc++-v3/doc/xml/manual/strings.xml b/libstdc++-v3/doc/xml/manual/strings.xml
index b0dab645a2d9..4a63dd964771 100644
--- a/libstdc++-v3/doc/xml/manual/strings.xml
+++ b/libstdc++-v3/doc/xml/manual/strings.xml
@@ -356,8 +356,8 @@ stringtok(Container &container, string const &in,
entry) but the regular copy constructor cannot be used
because libstdc++'s string is Copy-On-Write in GCC 3.
- s.shrink_to_fit() to achieve the same effect as
+ s.shrink_to_fit() to achieve the same effect as
s.reserve(s.size()).