OSDN Git Service

2001-12-21 Paolo Carlini <pcarlini@unitus.it>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Dec 2001 13:08:35 +0000 (13:08 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Dec 2001 13:08:35 +0000 (13:08 +0000)
* include/ext/stl_rope.h (_Rope_iterator):
Add local typedef to fix implicit typename problems.

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

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/stl_rope.h

index ee88500..df541cd 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-21  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/ext/stl_rope.h (_Rope_iterator):
+       Add local typedef to fix implicit typename problems.
+
 2001-12-19  Phil Edwards  <pme@gcc.gnu.org>
 
        * docs/doxygen/Intro.3:  New 'Allocators' module.
index 089561a..b27e7ee 100644 (file)
@@ -1024,6 +1024,7 @@ template<class _CharT, class _Alloc>
 class _Rope_iterator : public _Rope_iterator_base<_CharT,_Alloc> {
     friend class rope<_CharT,_Alloc>;
   protected:
+    typedef typename _Rope_iterator_base<_CharT,_Alloc>::_RopeRep _RopeRep;
     rope<_CharT,_Alloc>* _M_root_rope;
         // root is treated as a cached version of this,
         // and is used to detect changes to the underlying
@@ -1057,8 +1058,7 @@ class _Rope_iterator : public _Rope_iterator_base<_CharT,_Alloc> {
         _RopeRep::_S_unref(_M_root);
     }
     _Rope_iterator& operator= (const _Rope_iterator& __x) {
-        typename
-         _Rope_iterator_base<_CharT,_Alloc>::_RopeRep* __old = _M_root;
+        _RopeRep* __old = _M_root;
 
         _RopeRep::_S_ref(__x._M_root);
         if (0 != __x._M_buf_ptr) {