OSDN Git Service

2001-12-10 Paolo Carlini <pcarlini@unitus.it>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Dec 2001 14:32:28 +0000 (14:32 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Dec 2001 14:32:28 +0000 (14:32 +0000)
* include/bits/basic_string.tcc (_M_replace_safe):  Fix typos.
* include/bits/basic_string.h:  Fix typos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47847 138bc75d-0d04-0410-961f-82ee72b054a4

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

index d12a7e2..a67c6aa 100644 (file)
@@ -1,4 +1,9 @@
 2001-12-10  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/bits/basic_string.tcc (_M_replace_safe):  Fix typos.
+       * include/bits/basic_string.h:  Fix typos.
+
+2001-12-10  Paolo Carlini  <pcarlini@unitus.it>
             Nathan Myers  <ncm@cantrip.org>
 
        * include/bits/basic_string.tcc (_M_replace_safe):  New function.
index 406d71c..6f9afe1 100644 (file)
@@ -639,10 +639,10 @@ namespace std
         _M_replace(iterator __i1, iterator __i2, _InputIterator __k1, 
                   _InputIterator __k2, input_iterator_tag);
 
-      template<class _InputIterator>
+      template<class _ForwardIterator>
         basic_string& 
-        _M_replace_safe(iterator __i1, iterator __i2, _InputIterator __k1, 
-                  _InputIterator __k2);
+        _M_replace_safe(iterator __i1, iterator __i2, _ForwardIterator __k1, 
+                  _ForwardIterator __k2);
 
       // _S_construct_aux is used to implement the 21.3.1 para 15 which
       // requires special behaviour if _InIter is an integral type
index 57a5191..69638e2 100644 (file)
@@ -514,11 +514,11 @@ namespace std
   // i.e., when source and destination ranges are known to not overlap.
   // Presently, is called by _M_replace and by the various append.
   template<typename _CharT, typename _Traits, typename _Alloc>
-    template<typename _InputIter>
+    template<typename _ForwardIter>
       basic_string<_CharT, _Traits, _Alloc>&
       basic_string<_CharT, _Traits, _Alloc>::
-      _M_replace_safe(iterator __i1, iterator __i2, _InputIter __k1, 
-                     _InputIter __k2)
+      _M_replace_safe(iterator __i1, iterator __i2, _ForwardIter __k1, 
+                     _ForwardIter __k2)
       {
        size_type __dnew = static_cast<size_type>(distance(__k1, __k2));
        size_type __dold = __i2 - __i1;