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: malloc_allocator.h


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


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