]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
basic_string.h (insert(iterator)): Remove, non-standard and already scheduled for...
authorPaolo Carlini <pcarlini@suse.de>
Tue, 3 Feb 2004 23:34:52 +0000 (23:34 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 3 Feb 2004 23:34:52 +0000 (23:34 +0000)
2004-02-03  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.h (insert(iterator)): Remove,
non-standard and already scheduled for removal.

From-SVN: r77198

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h

index c073ca735a79dce49f4b5b0aaeae8cce257088cd..490b1b4b2e00c15adb1b249cdf630ebd19eca5dc 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-03  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/basic_string.h (insert(iterator)): Remove,
+       non-standard and already scheduled for removal.
+
 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/stl_iterator_base_funcs.h: Minor formatting
index 970b5093bfcf16f9d1802e8982977dcdc4070b9b..8046308c641134799fe44b4af6f2239f88c5d577 100644 (file)
@@ -1005,24 +1005,6 @@ namespace std
        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).