problem with malloc_alloc_template
Paolo Carlini
paolo.carlini@oracle.com
Tue Mar 24 10:35:00 GMT 2009
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.
More information about the Libstdc++
mailing list