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++/30578] array_allocator can't be safely copied



------- 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


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