|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-02-24 14:58:07
"Philippe A. Bouchard" <philippeb_at_[hidden]> writes:
> David Abrahams wrote:
>
> [...]
>
>>> Example:
>>> optional<int> i;
>>>
>>> new (i) int(17);
>>
>> Which copy ctor are you referring to?
>> And why do we want to prevent copy ctor usages?
>
> Because optional<> will be able to handle types without copy constructors
> (this was the main purpose of partial<> in fact). I was referring to the
> copy constructor of optional<>'s template parameter.
I understand now, thanks.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk