fix missing return warning (#1173)

This commit is contained in:
reed 2023-11-04 10:42:59 +08:00 committed by GitHub
parent 1d7f2a207e
commit 39c6a83f23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,12 +399,13 @@ tuple_cat(T0 const& t0, T1 const& t1)
if constexpr (is_static<T0>::value && is_static<T1>::value &&
is_tuple<T0>::value && is_tuple<T1>::value) {
return typename detail::tuple_cat_static<T0, T1>::type{};
} else
{
} else {
return detail::tuple_cat(t0, t1,
make_index_sequence<tuple_size<T0>::value>{},
make_index_sequence<tuple_size<T1>::value>{});
}
CUTE_GCC_UNREACHABLE;
}
template <class T0, class T1, class T2>