NamedType icon indicating copy to clipboard operation
NamedType copied to clipboard

tuple of NamedTypes

Open david8dixon opened this issue 3 years ago • 1 comments

Any ideas on how one might provide a custom get function to avoid extra call to get on the named type in the following:

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.

david8dixon avatar Jul 21 '21 01:07 david8dixon

Would not adding the skill Callable solve this? See here.

DeveloperPaul123 avatar Nov 15 '21 19:11 DeveloperPaul123