This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/30578] array_allocator can't be safely copied
- From: "skottmckay at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2007 21:58:14 -0000
- Subject: [Bug libstdc++/30578] array_allocator can't be safely copied
- References: <bug-30578-13986@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from skottmckay at gmail dot com 2007-02-07 21:58 -------
Doesn't it need to be copy constructable for the rebinding to work for
_Vector_base::_Vector_impl::_Tp_alloc_type?
I agree that making it mt-safe doesn't quite fit with its intended usage.
Possibly the array_allocator and backing array should be wrapped with a
non-copyable class.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30578