[Bug libstdc++/30578] array_allocator can't be safely copied

bkoz at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 1 12:20:00 GMT 2007



------- Comment #2 from bkoz at gcc dot gnu dot org  2007-02-01 12:20 -------

Should array_allocator be copy-constructable? I am not sure that the extra
effort to make _M_used shared in a mt-safe manner is worth it, for something
that is supposed to be write-once memory. 

This is a deviation from the normal allocator interface, though.

Interesting.


-- 


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



More information about the Gcc-bugs mailing list