Boost logo

Boost :

Subject: Re: [boost] [optional] std::tr2::optional
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-11-19 11:44:03


On 19 November 2011 02:22, Sebastian Redl <sebastian.redl_at_[hidden]> wrote:
> Do we even want the third variant? That is, do we want to support tr2::optional of something that is neither copyable nor movable?

I think we do. optional<T> should be copyable if and only if T is
copyable, and optional<T> should be moveable if and only if T is
moveable. (I'm not yet sure if construction vs. assignment can also
be distinguished based on how we can implement it.)

-- 
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk