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


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