bug fixes on flattening

This commit is contained in:
2022-11-17 17:21:26 +08:00
parent 4f7f544983
commit 8e482a1228
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -428,7 +428,7 @@ using get_first = typename get_first_impl<T...>::first;
template <class T>
struct value_type_rec_impl { typedef T type; };
template <template <class...> class VT, class ...V>
struct value_type_rec_impl<VT<V...>> { typedef typename value_type_rec_impl<get_first<int>>::type type; };
struct value_type_rec_impl<VT<V...>> { typedef typename value_type_rec_impl<get_first<V...>>::type type; };
template <class T>
using value_type_r = typename value_type_rec_impl<T>::type;