malloc_allocator.h

Gabriel Dos Reis gdr@integrable-solutions.net
Thu Dec 9 19:31:00 GMT 2004


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



More information about the Libstdc++ mailing list