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: [Patch/RFC] Fix libstdc++/15775


Paolo Carlini wrote:

Hi,

in my reading of the standard, due to the requirements for allocators (20.1.5,
in particular Table 32 and 20.1.5, p4) strictly speaking the library is
correct as is, in the sense that, f.i.,


typedef value_type* pointer;

is equivalent to

typedef typename _Alloc::pointer pointer;

However, we are already using the latter syntax (exactly that specified in the
standard) in set e multiset and seems good, for consistency, to use it also for
the other containers.

The latter is the only way for an implementation to support (as an extension) pointers and references of user-defined types. We had a request for this a while back and we actually got it to work with some success.

Martin


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