I'm struggling to figure out how to make a hana::set from a template parameter pack. I have a method that I have used for tuples (tuple_t) but it seems to create a set I have to use make_set. Here is where I'm getting stuck:
template<typename ...Ts>
class Foo
{
public:
static constexpr auto asTuple = hana::tuple_t<Ts...>;
static constexpr auto asSet = hana::make_set(/*what goes here?*/);
};
Thanks
You have to expand the types with the hana::type_c
helper:
static constexpr auto asSet = hana::make_set(hana::type_c<Ts>...);