This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/26875] Array allocator use count is shared between array_allocator instances



------- Comment #4 from bart dot vanassche at gmail dot com  2006-03-27 10:53 -------
(In reply to comment #3)
> Confirmed.  Though it looks like this is a fundamental problem of the interface
> provided.  Should be documented so though.  Also destroying an array allocator
> instance does not reset the __array_used value, so only ever one allocator
> instance per Type/Storage can be used even sequentially after each other.

I don't think it's an interface problem -- IMHO changing __array_used into a
(non-static) member of class array_allocator<> would solve this issue.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26875


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