diff options
author | Paolo Carlini <pcarlini@suse.de> | 2004-02-03 23:34:52 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2004-02-03 23:34:52 +0000 |
commit | 129e9210595f89afdab6276a7aa194f7e56c9076 (patch) | |
tree | a0ad2be4322a47dad64f1c842282ac7ee25aa87c | |
parent | 584e5527f93a30910ad0b8e694cae2f10e04d7ee (diff) | |
download | gcc-129e9210595f89afdab6276a7aa194f7e56c9076.zip gcc-129e9210595f89afdab6276a7aa194f7e56c9076.tar.gz gcc-129e9210595f89afdab6276a7aa194f7e56c9076.tar.bz2 |
basic_string.h (insert(iterator)): Remove, non-standard and already scheduled for removal.
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/basic_string.h | 18 |
2 files changed, 5 insertions, 18 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c073ca7..490b1b4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 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 and indentation tweaks. * include/bits/stl_iterator_base_types.h: Likewise. diff --git a/libstdc++-v3/include/bits/basic_string.h b/libstdc++-v3/include/bits/basic_string.h index 970b509..8046308 100644 --- a/libstdc++-v3/include/bits/basic_string.h +++ b/libstdc++-v3/include/bits/basic_string.h @@ -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). |