This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
[Fwd: allocators not conformant to standard]
- To: libstdc++ <libstdc++@sourceware.cygnus.com>
- Subject: [Fwd: allocators not conformant to standard]
- From: Craig Perras <cperras@watchguard.com>
- Date: Tue, 31 Aug 1999 12:28:21 -0700
I had sent this to sgi, but recieved no response. I would be happy to
provide patches for this. Please let me know.
--craig
-------- Original Message --------
Subject: allocators not conformant to standard
Date: Thu, 26 Aug 1999 15:17:47 -0700
From: Craig Perras <cperras@watchguard.com>
To: stl@sgi.com
Hello -
I'm writing a persistent object storage program for c++, and am looking
for ways to make stl containers persistent. My current design calls for
passing in the address of the container into the pallocator<T>::allocate
function as the 'hint' (second parameter). Two problems with this: there
is no 'hint' parameter in any of the allocators distributed with your
stl library (as required by the standard), and the address of the
container is not passed in (obviously). The first is a no-brainer (it's
required, after all), and I can't see a problem with implementing the
second, as the address of the container shouldn't be a bad 'hint' to an
optimizing allocator.
Comments? Please let me know if you would like patches, or are willing
to make the requisite changes.
thanks,
--craig