This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Remove string::insert(iterator)
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 04 Feb 2004 00:33:36 +0100
- Subject: [v3] Remove string::insert(iterator)
Hi,
I'm removing from mainline this extension, which, actually was
already scheduled for removal in 3.3 (!).
Tested x86-linux.
Paolo.
////////////
2004-02-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (insert(iterator)): Remove,
non-standard and already scheduled for removal.
diff -urN libstdc++-v3-orig/include/bits/basic_string.h libstdc++-v3/include/bits/basic_string.h
--- libstdc++-v3-orig/include/bits/basic_string.h 2004-01-31 18:50:46.000000000 +0100
+++ libstdc++-v3/include/bits/basic_string.h 2004-02-03 19:33:48.000000000 +0100
@@ -1005,24 +1005,6 @@
return this->_M_ibegin() + __pos;
}
-#ifdef _GLIBCXX_DEPRECATED
- /**
- * @brief Insert one default-constructed character.
- * @param p Iterator referencing position in string to insert at.
- * @return Iterator referencing newly inserted char.
- * @throw std::length_error If new length exceeds @c max_size().
- *
- * Inserts a default-constructed character at position
- * referenced by @a p. If adding character causes the length
- * to exceed max_size(), length_error is thrown. If @a p is
- * beyond end of string, out_of_range is thrown. The value of
- * the string doesn't change if an error is thrown.
- */
- iterator
- insert(iterator __p)
- { return this->insert(__p, _CharT()); }
-#endif /* _GLIBCXX_DEPRECATED */
-
/**
* @brief Remove characters.
* @param pos Index of first character to remove (default 0).