OSDN Git Service

* include/bits/demangle.h: Fix allocator type correctness,
authoraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2003 18:35:38 +0000 (18:35 +0000)
committeraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2003 18:35:38 +0000 (18:35 +0000)
commit0f9f763311d9f5e59001865f815f8ffbf9bc4868
treed71e92d2f714303433e3e6f0e501859221810a08
parente7f8f0ebaf58e558ee94593c4ce8f92c9aee7b93
* include/bits/demangle.h: Fix allocator type correctness,
i.e. make sure that when we instantiate a container with a value
type and an allocator, the allocator's value type matches the
container's.
* include/bits/stl_deque.h (_Deque_alloc_base): Eliminate.
(_Deque_base): inherit directly from the deque's allocator.  Use
rebinding instead of _Alloc_traits.  Pick up data members from
_Deque_alloc_base.
* include/bits/stl_list.h (_List_alloc_base): Eliminate.
(_List_base): Inherit directly from the list's allocator.  Use
rebinding instead of _Alloc_traits.  Pick up data members from
_List_alloc_base.
* include/bits/stl_vector.h (_Vector_alloc_base): Eliminate
(_Vector_base): Inherit directly from the vector's allocator.  Use
rebinding instead of _Alloc_traits.  Pick up data members from
_Vector_alloc_base.
* include/ext/hashtable.h: Fix allocator type correctness (the
vector of buckets must be passed an allocator for objects of
type _Node*).  Use rebinding instead of _Alloc_traits.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74787 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/demangle.h
libstdc++-v3/include/bits/stl_deque.h
libstdc++-v3/include/bits/stl_list.h
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/include/ext/hashtable.h