|
Boost : |
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2006-10-23 04:19:31
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk