Is there a way to use something like :
constexpr auto foo = hana::make_tuple(hana::type_c<Foo1>,hana::type_c<Foo2>);
with something like:
template < typename ... Ts >
struct Final {
constexpr Final(Ts && ... args) {}
};
hana::unpack(foo, [] (auto && ... args) { return Final(args...); });
Because with that code, unpack
can't deduce lambda/function type.
Basically I want to create a type which takes a list of arguments but I have a tuple which contains the arguments.