Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tuple of NamedTypes #62

Open
david8dixon opened this issue Jul 21, 2021 · 1 comment
Open

tuple of NamedTypes #62

david8dixon opened this issue Jul 21, 2021 · 1 comment

Comments

@david8dixon
Copy link

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.

@DeveloperPaul123
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants