]> gcc.gnu.org Git - gcc.git/commitdiff
forward_list.tcc (operator==): Use auto.
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 16 Oct 2008 14:04:28 +0000 (14:04 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 16 Oct 2008 14:04:28 +0000 (14:04 +0000)
2008-10-16  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/forward_list.tcc (operator==): Use auto.

From-SVN: r141173

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

index 14aeec01b57f83e84d4021538aaf7ba1d10bb141..4b7151e0c35b590cb4e392cd2c5066543c67e1c0 100644 (file)
@@ -1,3 +1,7 @@
+2008-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/bits/forward_list.tcc (operator==): Use auto.
+
 2008-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * include/bits/forward_list.h (_Fwd_list_base<>::_M_insert_after):
index 7ae4f231841d5e176ff4c34e1e4747a533980229..46b97d53f34324274cea8db798922f35580f5121 100644 (file)
@@ -469,7 +469,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
         iterator __first = begin();
         iterator __last = end();
         if (__first == __last)
-       return;
+         return;
         iterator __next = __first;
         while (++__next != __last)
        {
@@ -518,10 +518,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
     {
       //  We don't have size() so we need to walk through both lists
       //  making sure both iterators are valid.
-      typename std::forward_list<_Tp, _Alloc>::const_iterator __ix
-        = __lx.cbegin();
-      typename std::forward_list<_Tp, _Alloc>::const_iterator __iy
-        = __ly.cbegin();
+      auto __ix = __lx.cbegin();
+      auto __iy = __ly.cbegin();
       while (__ix != __lx.cend() && __iy != __ly.cend())
         {
           if (*__ix != *__iy)
This page took 0.071505 seconds and 5 git commands to generate.