From: Bronek Kozicki (brok_at_[hidden])
Date: 2004-01-21 13:35:13
On Wed, 21 Jan 2004 17:50:04 +0200, Peter Dimov wrote:
> Bronek Kozicki wrote:
>> I think that it is more generic, than having two classes move_ptr and
>> move_arr; isn't it ?
> No, it isn't more generic, since you can't really do generic (T-independent)
> things with a move_ptr<T> if you don't know whether T is an array. But I've
> learned to love the move_ptr<T> syntax.
But you can do generic things on move_ptr<T> not knowing if T is an
array. I agree, this is small gain, but still ...
template <typename T> move_ptr<T> move(move_ptr<T>& t);
... is valid for both - pointer and array.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk