
20 Nov
2011
20 Nov
'11
8:23 a.m.
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.