diff options
author | Paolo Carlini <pcarlini@unitus.it> | 2001-12-13 01:41:03 +0100 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2001-12-13 00:41:03 +0000 |
commit | 897bb55fe36f6908d336f79c9853f1dd16058790 (patch) | |
tree | a931c7e0dc998672b77babd59b21fa472394dd63 | |
parent | 5742588d23cb1e1409c780e71e2b4b2ac8093190 (diff) | |
download | gcc-897bb55fe36f6908d336f79c9853f1dd16058790.zip gcc-897bb55fe36f6908d336f79c9853f1dd16058790.tar.gz gcc-897bb55fe36f6908d336f79c9853f1dd16058790.tar.bz2 |
ropeimpl.h (rope::_S_leaf_concat_char_iter, [...]): Adjust implicit typename.
2001-12-12 Paolo Carlini <pcarlini@unitus.it>
* include/ext/ropeimpl.h (rope::_S_leaf_concat_char_iter,
_S_destr_leaf_concat_char_iter, _S_tree_concat, _S_concat_char_iter,
_S_destr_concat_char_iter, _S_concat, _S_substring, _S_balance)
: Adjust implicit typename.
* include/ext/stl_rope.h (_Rope_iterator::operator=, rope::npos):
Adjust implicit typename.
* testsuite/27_io/streambuf.cc: Adjust implicit typename.
From-SVN: r47958
-rw-r--r-- | libstdc++-v3/ChangeLog | 10 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/ropeimpl.h | 15 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/stl_rope.h | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/27_io/streambuf.cc | 2 |
4 files changed, 23 insertions, 9 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3ce299e..25078d4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,13 @@ +2001-12-12 Paolo Carlini <pcarlini@unitus.it> + + * include/ext/ropeimpl.h (rope::_S_leaf_concat_char_iter, + _S_destr_leaf_concat_char_iter, _S_tree_concat, _S_concat_char_iter, + _S_destr_concat_char_iter, _S_concat, _S_substring, _S_balance) + : Adjust implicit typename. + * include/ext/stl_rope.h (_Rope_iterator::operator=, rope::npos): + Adjust implicit typename. + * testsuite/27_io/streambuf.cc: Adjust implicit typename. + 2001-12-12 Benjamin Kosnik <bkoz@redhat.com> Named locale support for ctype<char>. diff --git a/libstdc++-v3/include/ext/ropeimpl.h b/libstdc++-v3/include/ext/ropeimpl.h index 49e537b..f1e84ed 100644 --- a/libstdc++-v3/include/ext/ropeimpl.h +++ b/libstdc++-v3/include/ext/ropeimpl.h @@ -390,7 +390,7 @@ template <class _CharT, class _Alloc> // Concatenate a C string onto a leaf rope by copying the rope data. // Used for short ropes. template <class _CharT, class _Alloc> -rope<_CharT,_Alloc>::_RopeLeaf* +typename rope<_CharT,_Alloc>::_RopeLeaf* rope<_CharT,_Alloc>::_S_leaf_concat_char_iter (_RopeLeaf* __r, const _CharT* __iter, size_t __len) { @@ -418,7 +418,7 @@ rope<_CharT,_Alloc>::_S_leaf_concat_char_iter #ifndef __GC // As above, but it's OK to clobber original if refcount is 1 template <class _CharT, class _Alloc> -rope<_CharT,_Alloc>::_RopeLeaf* +typename rope<_CharT,_Alloc>::_RopeLeaf* rope<_CharT,_Alloc>::_S_destr_leaf_concat_char_iter (_RopeLeaf* __r, const _CharT* __iter, size_t __len) { @@ -449,7 +449,7 @@ rope<_CharT,_Alloc>::_S_destr_leaf_concat_char_iter // Does not increment (nor decrement on exception) child reference counts. // Result has ref count 1. template <class _CharT, class _Alloc> -rope<_CharT,_Alloc>::_RopeRep* +typename rope<_CharT,_Alloc>::_RopeRep* rope<_CharT,_Alloc>::_S_tree_concat (_RopeRep* __left, _RopeRep* __right) { _RopeConcatenation* __result = _S_new_RopeConcatenation(__left, __right, @@ -482,6 +482,7 @@ rope<_CharT,_Alloc>::_S_tree_concat (_RopeRep* __left, _RopeRep* __right) } template <class _CharT, class _Alloc> +typename rope<_CharT,_Alloc>::_RopeRep* rope<_CharT,_Alloc>::_S_concat_char_iter (_RopeRep* __r, const _CharT*__s, size_t __slen) { @@ -536,7 +537,7 @@ rope<_CharT,_Alloc>::_RopeRep* rope<_CharT,_Alloc>::_S_concat_char_iter #ifndef __GC template <class _CharT, class _Alloc> -rope<_CharT,_Alloc>::_RopeRep* +typename rope<_CharT,_Alloc>::_RopeRep* rope<_CharT,_Alloc>::_S_destr_concat_char_iter( _RopeRep* __r, const _CharT* __s, size_t __slen) { @@ -593,7 +594,7 @@ rope<_CharT,_Alloc>::_S_destr_concat_char_iter( #endif /* !__GC */ template <class _CharT, class _Alloc> -rope<_CharT,_Alloc>::_RopeRep* +typename rope<_CharT,_Alloc>::_RopeRep* rope<_CharT,_Alloc>::_S_concat(_RopeRep* __left, _RopeRep* __right) { if (0 == __left) { @@ -648,7 +649,7 @@ rope<_CharT,_Alloc>::_S_concat(_RopeRep* __left, _RopeRep* __right) } template <class _CharT, class _Alloc> -rope<_CharT,_Alloc>::_RopeRep* +typename rope<_CharT,_Alloc>::_RopeRep* rope<_CharT,_Alloc>::_S_substring(_RopeRep* __base, size_t __start, size_t __endp1) { @@ -1073,7 +1074,7 @@ rope<_CharT,_Alloc>::_S_min_len[ // These are Fibonacci numbers < 2**32. template <class _CharT, class _Alloc> -rope<_CharT,_Alloc>::_RopeRep* +typename rope<_CharT,_Alloc>::_RopeRep* rope<_CharT,_Alloc>::_S_balance(_RopeRep* __r) { _RopeRep* __forest[_RopeRep::_S_max_rope_depth + 1]; diff --git a/libstdc++-v3/include/ext/stl_rope.h b/libstdc++-v3/include/ext/stl_rope.h index 2fae3cc..23cc7e4 100644 --- a/libstdc++-v3/include/ext/stl_rope.h +++ b/libstdc++-v3/include/ext/stl_rope.h @@ -1055,7 +1055,8 @@ class _Rope_iterator : public _Rope_iterator_base<_CharT,_Alloc> { _RopeRep::_S_unref(_M_root); } _Rope_iterator& operator= (const _Rope_iterator& __x) { - _RopeRep* __old = _M_root; + typename + _Rope_iterator_base<_CharT,_Alloc>::_RopeRep* __old = _M_root; _RopeRep::_S_ref(__x._M_root); if (0 != __x._M_buf_ptr) { @@ -2183,7 +2184,7 @@ class rope : public _Rope_base<_CharT,_Alloc> { }; template <class _CharT, class _Alloc> -const rope<_CharT, _Alloc>::size_type rope<_CharT, _Alloc>::npos = +const typename rope<_CharT, _Alloc>::size_type rope<_CharT, _Alloc>::npos = (size_type)(-1); template <class _CharT, class _Alloc> diff --git a/libstdc++-v3/testsuite/27_io/streambuf.cc b/libstdc++-v3/testsuite/27_io/streambuf.cc index 62c965f..a560390 100644 --- a/libstdc++-v3/testsuite/27_io/streambuf.cc +++ b/libstdc++-v3/testsuite/27_io/streambuf.cc @@ -197,6 +197,8 @@ template<typename charT, typename traits = std::char_traits<charT> > class basic_nullbuf : public std::basic_streambuf<charT, traits> { protected: + typedef typename + std::basic_streambuf<charT, traits>::int_type int_type; virtual int_type overflow(int_type c) { return traits::not_eof(c); } |