This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch/RFC] Fix libstdc++/15775
- From: Martin Sebor <sebor at roguewave dot com>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 09 Jun 2004 10:25:38 -0600
- Subject: Re: [Patch/RFC] Fix libstdc++/15775
- References: <40C707D0.6070602@suse.de>
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