From: Joel de Guzman (joel_at_[hidden])
Date: 2005-10-18 17:27:06
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
> 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".
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk