
18 Oct
2005
18 Oct
'05
10:27 p.m.
Yuval Ronen wrote:
// (3) Sam's proposal: o = make_optional(rb); // Clearly rebinds, doesn't it?
// I just introduced make_optional() here to get rid of the template argument
Oh, this is much better than the
o = optional<int&>(rb)
I just voted againts, but is it feasible? Can make_optional() know if it should make an optional<T> or optional<T&>? Perhaps a way can be found, but I'm not sure of it.
It would be: o = optional_tie(rb); for references. Following tuple's "tie". Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net