This is the mail archive of the libstdc++@gcc.gnu.org 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]

Hello


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>


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