From: Andrew Pinski Date: Wed, 28 Jan 2004 16:34:08 +0000 (+0000) Subject: re PR libstdc++/13462 (Non-standard conformed type set::pointer) X-Git-Tag: releases/gcc-3.3.3~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7dfa7df149034ae4927bd03c5904808c2742a5c;p=thirdparty%2Fgcc.git re PR libstdc++/13462 (Non-standard conformed type set::pointer) 2004-01-28 Andrew Pinski PR libstdc++/13462 * include/bits/stl_multiset.h (std::multiset): Define pointer as allocator's pointer, likewise for reference, const_pointer, and const_reference. * include/bits/stl_set.h (std::set): Likewise. * include/ext/hash_set (__gnu_cxx::hash_set): Likewise. (__gnu_cxx::hash_multiset): Likewise. From-SVN: r76793 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b2147fece256..3f53b6b44e9e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,13 @@ +2004-01-28 Andrew Pinski + + PR libstdc++/13462 + * include/bits/stl_multiset.h (std::multiset): Define pointer + as allocator's pointer, likewise for reference, const_pointer, and + const_reference. + * include/bits/stl_set.h (std::set): Likewise. + * include/ext/hash_set (__gnu_cxx::hash_set): Likewise. + (__gnu_cxx::hash_multiset): Likewise. + 2004-01-28 Sylvain Pion PR libstdc++/10783 diff --git a/libstdc++-v3/include/bits/stl_multiset.h b/libstdc++-v3/include/bits/stl_multiset.h index 2bfc8f10c32b..bc5b8471980e 100644 --- a/libstdc++-v3/include/bits/stl_multiset.h +++ b/libstdc++-v3/include/bits/stl_multiset.h @@ -100,10 +100,10 @@ private: _Identity, key_compare, _Alloc> _Rep_type; _Rep_type _M_t; // red-black tree representing multiset public: - typedef typename _Rep_type::const_pointer pointer; - typedef typename _Rep_type::const_pointer const_pointer; - typedef typename _Rep_type::const_reference reference; - typedef typename _Rep_type::const_reference const_reference; + typedef typename _Alloc::pointer pointer; + typedef typename _Alloc::const_pointer const_pointer; + typedef typename _Alloc::reference reference; + typedef typename _Alloc::const_reference const_reference; typedef typename _Rep_type::const_iterator iterator; typedef typename _Rep_type::const_iterator const_iterator; typedef typename _Rep_type::const_reverse_iterator reverse_iterator; diff --git a/libstdc++-v3/include/bits/stl_set.h b/libstdc++-v3/include/bits/stl_set.h index ee708c292179..3a49e4d15739 100644 --- a/libstdc++-v3/include/bits/stl_set.h +++ b/libstdc++-v3/include/bits/stl_set.h @@ -99,10 +99,10 @@ private: _Identity, key_compare, _Alloc> _Rep_type; _Rep_type _M_t; // red-black tree representing set public: - typedef typename _Rep_type::const_pointer pointer; - typedef typename _Rep_type::const_pointer const_pointer; - typedef typename _Rep_type::const_reference reference; - typedef typename _Rep_type::const_reference const_reference; + typedef typename _Alloc::pointer pointer; + typedef typename _Alloc::const_pointer const_pointer; + typedef typename _Alloc::reference reference; + typedef typename _Alloc::const_reference const_reference; typedef typename _Rep_type::const_iterator iterator; typedef typename _Rep_type::const_iterator const_iterator; typedef typename _Rep_type::const_reverse_iterator reverse_iterator; diff --git a/libstdc++-v3/include/ext/hash_set b/libstdc++-v3/include/ext/hash_set index 0f420e2dd7eb..f05141d7e49a 100644 --- a/libstdc++-v3/include/ext/hash_set +++ b/libstdc++-v3/include/ext/hash_set @@ -111,10 +111,10 @@ public: typedef typename _Ht::size_type size_type; typedef typename _Ht::difference_type difference_type; - typedef typename _Ht::const_pointer pointer; - typedef typename _Ht::const_pointer const_pointer; - typedef typename _Ht::const_reference reference; - typedef typename _Ht::const_reference const_reference; + typedef typename _Alloc::pointer pointer; + typedef typename _Alloc::const_pointer const_pointer; + typedef typename _Alloc::reference reference; + typedef typename _Alloc::const_reference const_reference; typedef typename _Ht::const_iterator iterator; typedef typename _Ht::const_iterator const_iterator; @@ -267,10 +267,10 @@ public: typedef typename _Ht::size_type size_type; typedef typename _Ht::difference_type difference_type; - typedef typename _Ht::const_pointer pointer; - typedef typename _Ht::const_pointer const_pointer; - typedef typename _Ht::const_reference reference; - typedef typename _Ht::const_reference const_reference; + typedef typename _Alloc::pointer pointer; + typedef typename _Alloc::const_pointer const_pointer; + typedef typename _Alloc::reference reference; + typedef typename _Alloc::const_reference const_reference; typedef typename _Ht::const_iterator iterator; typedef typename _Ht::const_iterator const_iterator;