]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
vector.tcc (erase(iterator, iterator), [...]): Qualify all calls to std::copy().
authorJonathan Wakely <redi@gcc.gnu.org>
Thu, 30 Dec 2004 02:49:59 +0000 (02:49 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 30 Dec 2004 02:49:59 +0000 (02:49 +0000)
2004-12-29  Jonathan Wakely  <redi@gcc.gnu.org>

* include/bits/vector.tcc (erase(iterator, iterator),
operator=, _M_assign_aux(_ForwardIterator, _ForwardIterator,
forward_iterator_tag)): Qualify all calls to std::copy().

From-SVN: r92725

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/vector.tcc

index c45ff17189e4f998e054f32cd5d68d72d3774f91..02c456f9b8f4f19350080e99ce23c08af28b2440 100644 (file)
@@ -1,3 +1,9 @@
+2004-12-29  Jonathan Wakely  <redi@gcc.gnu.org>
+
+       * include/bits/vector.tcc (erase(iterator, iterator),
+       operator=, _M_assign_aux(_ForwardIterator, _ForwardIterator,
+       forward_iterator_tag)): Qualify all calls to std::copy().
+
 2004-12-23  Paolo Carlini  <pcarlini@suse.de>
 
        Minimal fixes for -fno-exceptions.
index abd1ba76250eb5eaccb738b9670046b679e06c66..786afab2ec965e8f7beb86836b940edbd5285cd1 100644 (file)
@@ -1,6 +1,6 @@
 // Vector implementation (out of line) -*- C++ -*-
 
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -118,7 +118,7 @@ namespace _GLIBCXX_STD
     vector<_Tp,_Alloc>::
     erase(iterator __first, iterator __last)
     {
-      iterator __i(copy(__last, end(), __first));
+      iterator __i(std::copy(__last, end(), __first));
       std::_Destroy(__i, end());
       this->_M_impl._M_finish = this->_M_impl._M_finish - (__last - __first);
       return __first;
@@ -143,7 +143,7 @@ namespace _GLIBCXX_STD
         }
         else if (size() >= __xlen)
         {
-          iterator __i(copy(__x.begin(), __x.end(), begin()));
+          iterator __i(std::copy(__x.begin(), __x.end(), begin()));
           std::_Destroy(__i, end());
         }
         else
@@ -209,7 +209,7 @@ namespace _GLIBCXX_STD
       }
       else if (size() >= __len)
       {
-        iterator __new_finish(copy(__first, __last, this->_M_impl._M_start));
+        iterator __new_finish(std::copy(__first, __last, this->_M_impl._M_start));
         std::_Destroy(__new_finish, end());
         this->_M_impl._M_finish = __new_finish.base();
       }