This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Nonstandard allocator::pointer in containers


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]