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: problem with malloc_alloc_template


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.


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