This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: problem with malloc_alloc_template
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Noah Silverman <noah at smartmediacorp dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 24 Mar 2009 11:35:29 +0100
- Subject: Re: problem with malloc_alloc_template
- References: <10331974.181237854095597.JavaMail.noah@iMac-24.local>
Hi,
> Can anybody offer some suggestions on how to fix this. (I imagine it's probably something simple like including an extra header or perhaps renaming the malloc call. But I'm not sure.)
>
first, note that this list is about the development of the GNU C++
runtime library, not about general user help, gcc-help is much more
suited for that...
Anyway, the problem you are facing is due to the fact that your code
relies on a non-standard facilities, which in the meanwhile have been
changed and renamed. Right now, the various allocators are included as
<ext/"something">, and live in namespace __gnu_cxx.
In fact, currently the default implementation of std::allocator is the
best approximation you have available of your old way of doing things.
Thus just, e.g.,
std::set< HASH64, less<HASH64> >
should work fine for you.
Paolo.