This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Nonstandard allocator::pointer in containers
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Phil Endecott <phil_kqzdh_endecott at chezphil dot org>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 23 May 2005 17:39:15 +0200
- Subject: Re: Nonstandard allocator::pointer in containers
- References: <4291F686.5060809@chezphil.org>
Hi Phil,
> I'm right at the limits of my understanding of C++ here, and I've no
> idea if there are serious downsides to this or whether it's just a
> case of doing a search-and-replace of T* by _Alloc::pointer. But I
> thought I'd ask here and see what you say.
First blush, I don't see any problem with this change. Actually,
considering for instance std::vector, the search-and-replace amounts to
5 occurrences all inside struct _Vector_base. I'm wondering whether you
can maybe try it yourself and report how it goes.
Then we can likely implement it throughout the library.
Paolo.