
25 May
2006
25 May
'06
7:46 p.m.
Fernando Cacciola wrote:
make_optional(condition,value)
I think it would be best to also add such a constructor to optional (that will accept a value and a condition). Sometimes it would be both more convenient and more efficient this way. make_optional can simply call this constructor. It would be even better if the value could also be a parameter to T's constructor, including in_place. I hope I didn't throw too much at you... :-) Yuval