Open david8dixon opened 3 years ago
Any ideas on how one might provide a custom get function to avoid extra call to get on the named type in the following:
get
using Type1 = NamedType<int, TypeTag>; using Type2 = NamedType<double, TypeTag>; auto t = make_tuple(Type(1), Type(2.0)); auto e = get<1>(t).get();
I would prefer the following:
auto e = get<1>(t);
That way I can use the same functionality regardless of whether or not the tuple holds a named type.
Would not adding the skill Callable solve this? See here.
Callable
Any ideas on how one might provide a custom
get
function to avoid extra call to get on the named type in the following:I would prefer the following:
That way I can use the same functionality regardless of whether or not the tuple holds a named type.