Boost logo

Boost :

Subject: Re: [boost] [optional] std::tr2::optional
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2011-11-20 03:23:06


On Saturday, November 19, 2011 18:26:25 Andrzej Krzemienski wrote:

> Also, if someone likes the assignment-of-"none" syntax, in C++11 there will
> be a similar syntax available:
>
> std::tr2::optional<T> op = {};
> op = {};

Wouldn't that be confusing with creating a filled optional with the value
constructed with empty initialization list? If there is assignment-of-none
syntax, it should probably be more explicit, pretty much like the current
"none" keyword.


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