Commit 640a55e7 authored by Matthias Vallentin's avatar Matthias Vallentin

Enable more flexible type list construction

parent 730d1979
......@@ -1226,6 +1226,18 @@ struct tl_replicate<0, T> {
template <size_t N, class T>
using tl_replicate_t = typename tl_replicate<N, T>::type;
/// Construct a type list from types that take a list of variadic template
/// arguments.
template <class>
struct tl_from;
template <template <class...> class T, class... Ts>
struct tl_from<T<Ts...>> {
using type = type_list<Ts...>;
};
template <class T>
using tl_from_t = typename tl_from<T>::type;
} // namespace detail
} // namespace caf
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment