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: Paolo Carlini <pcarlini at suse dot de>
- Cc: Phil Endecott <phil_kqzdh_endecott at chezphil dot org>,libstdc++ at gcc dot gnu dot org
- Date: Mon, 23 May 2005 18:36:55 +0200
- Subject: Re: Nonstandard allocator::pointer in containers
- References: <4291F686.5060809@chezphil.org> <4291FEE5.8020307@suse.de>
Paolo Carlini wrote:
>Just wanted to add that, in my reading of the standard, we are really
>talking about an extension: among the requirements for allocator itself
>(20.1.5), there is 20.1.5/4 that says that the typedef member pointer is
>-required- to be T*.
>
>
Sorry, I was wrong: this is eminently a QoI issue, because such
requirements are only intended as "permitted assumption" for containers:
in principle, an allocator may fullfil only Table 32 and still be called
a standard conforming allocator.
Paolo.