$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Howard Hinnant (hinnant_at_[hidden])
Date: 2004-01-24 20:36:06
On Jan 24, 2004, at 7:20 PM, Daryle Walker wrote:
> [SNIP]
>> With move_ptr<T[]> you (or at least I) immediately think: Ok, a smart
>> pointer to an array.
> [TRUNCATE]
>
> I forgot; will "T[]" resolve to an array type? In function
> parameters, it
> reduces to "T*", which is something unsuitable here if the same thing
> happens.
It would match a partial specialization such that:
template <class T>
class move_ptr<T[]>
{
...
};
Theoretically that specialization could do anything it wanted. I
suspect I'm not addressing your concern...
-Howard