Need help with using allocator in libstdc++

Benjamin Kosnik
Tue Aug 17 22:05:00 GMT 1999

You need to include memory, to start with. The standard allocator is
called, allocator, not alloc. Inheriting from it seems like a poor idea. 
Your member function signatures for allocate/deallocate differ from the

Sorry to be harsh. I sugges reading pages 570-573 of Bjarne's "C++
Programming Language v3" and search comp.lang.c++.moderated with the
keywords "custom allocator."

Best of luck

More information about the Libstdc++ mailing list