This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Need help with using allocator in libstdc++
- To: Jim Foley <jfoley@quickturn.com>
- Subject: Re: Need help with using allocator in libstdc++
- From: Benjamin Kosnik <bkoz@cygnus.com>
- Date: Tue, 17 Aug 1999 22:05:22 -0700 (PDT)
- cc: libstdc++@sourceware.cygnus.com
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
standard.
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
benjamin