This is the mail archive of the libstdc++@sourceware.cygnus.com 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]

Re: Need help with using allocator in libstdc++



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


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