Closed tzlaine closed 2 years ago
Unverified. If this is the case, this is a fix:
template<typename... Ts> auto to_variant(hana::set<Ts...> const &) { return std::variant<typename Ts::type...>{}; } auto const types = hana::transform(tuple_of_possible_dupes, [](auto const & x) { return hana::type_c<std::remove_cvref_t<decltype(x)>>; }); auto const unique_types = hana::to_set(types); return detail::to_variant(unique_types);
Confirmed that this is not an issue.
Unverified. If this is the case, this is a fix: