David Abrahams wrote:
[snip]
> BTW, I just realized that a conversion from variant<T> to optional<T>
> could be used to do extraction as well.  Maybe it would be better to
> ditch extract altogether and just use optional?

I had thought about this before, but I dismissed it (perhaps too quickly)
because I do not believe optional can contain references (i.e.,
optional<T&>) because references themselves are non-copyable.

Perhaps though optional< reference_wrapper<T> > could be returned? Thoughts?

Eric



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to