
23 Oct
2006
23 Oct
'06
8:19 a.m.
Shunsuke Sogame wrote:
Hi,
If a pointer container holds noncopyable objects, the iterators seem not to meet ReadableIteratorConcept whose 'value_type' must be CopyConstructible?
Anything wrong..?
Hm. I don't know. It seems counter-intuitive that a non-copyable type must be copyable. OTOH, for ptr_vector<T>, ptr_vector<T>::iterator's value_type is T (see detail/void_ptr_iterator.hpp). Maybe this should be changed to T*? -Thorsten