This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: malloc_allocator.h
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Matt Austern <austern at apple dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: 09 Dec 2004 20:30:05 +0100
- Subject: Re: malloc_allocator.h
- Organization: Integrable Solutions
- References: <E32F52D4-4A13-11D9-9CA1-000A95BCF344@apple.com>
Matt Austern <austern@apple.com> writes:
| Possibly stupid question... malloc_allocator is defined in namespace
| __gnu_cxx, but it makes use of the names size_t, ptrdiff_t, malloc,
| and free, without qualification. How can this be right? Shouldn't
| they be std-qualified?
When we include the <cxxx> header, we should use qualification. If we
don't, then you have uncovered another set of qualification-bug in our
library.
-- Gaby