For some odd reason, some odd people want to write:
[has_error, value, error] = func(...);
... where func() returns result<T, E>.
Implementing this is trivial: specialise tuple_size<basic_result<>> to return 3 and implement at<I>(). But I suspect given the dragging in of <tuple>, this support needs its own header file outside the standard set of inclusions.
For some odd reason, some odd people want to write:
... where
func()returnsresult<T, E>.Implementing this is trivial: specialise
tuple_size<basic_result<>>to return 3 and implementat<I>(). But I suspect given the dragging in of<tuple>, this support needs its own header file outside the standard set of inclusions.