Hello

Carlo Wood carlo@alinoe.com
Tue May 8 20:28:00 GMT 2001


Did anyone see my last (and first) post on this list? :)
Just wondering, because I've seen no reaction so far
and I'd really like to know what is the deal with allocator
objects and stringstreams.

http://gcc.gnu.org/ml/libstdc++/2001-05/msg00027.html

A summary of the Question is:

When I do:

basic_stringstream<char, char_traits<char>, ALLOCATOR> ss;

ss << 123;

Then I expect that ANY allocation is done by calling
ALLOCATOR::allocate().  But it turns out that (due to
the allocation of a locale related object) operator new
is called directly.  Isn't that a bug?

-- 
Carlo Wood <carlo@alinoe.com>



More information about the Libstdc++ mailing list