in**@oop-trainer.de (Ralf Schneeweiß) wrote in message news:<a6**************************@posting.google. com>...
Hi,
there is a book from Andre Wilms describing how to write allocators
for STL containers. Unfortunately the MS VC++ Compiler is not
supporting the full ANSI standard in the template part of the C++
programming language. This is the reason why the implementation
proposal of Wilms is not working with this compiler.
Is there anyone who knows a implementation proposal for an allocator
working with VC++?
(a) This is an ISO C++ newsgroup; Visual C++ questions like this one
would best be directed to a Visual C++ newsgroup (e.g.,
comp.os.ms-windows.programmer.*).
(b) If you open the header file "memory" in your Visual C++ include
directory (e.g., c:\program files\microsoft visual
studio\vc98\include), you will find that it refers to another header
("xmemory") in the same directory. In that file is defined the MSVC++6
allocator class. Just re-implement its interface.
- Shane