------- Additional Comments From pcarlini at suse dot de  2005-05-16 16:30 
-------
Forgot to say: probably the issue can be dealt with at the cost of increasing
its complexity. Logic could be added to the copy-constructor(s) to the effect
of keeping on using the existing allocated memory, i.e., not zeroing _M_array
in the templated copy-contructor. This would make sense only when the alignment
is still appropriate for the new type: this check could be either responsability
of the user or enforced by the allocator (more tricky).

-- 


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

Reply via email to