From 00c802656d2c2de2ec90647defa6188c502d5a5e Mon Sep 17 00:00:00 2001 From: sha512sum Date: Fri, 19 Apr 2024 23:29:42 +0000 Subject: [PATCH] Use std::decay_t in tuple --- include/utempl/tuple.hpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/include/utempl/tuple.hpp b/include/utempl/tuple.hpp index cac3b8e..8bfdc51 100644 --- a/include/utempl/tuple.hpp +++ b/include/utempl/tuple.hpp @@ -22,14 +22,6 @@ struct TupleHelper, Ts...> : public impl::TupleLeaf -struct Process { - using type = decltype(Overloaded( - [](TT&&) -> std::remove_cvref_t {}, - [](const char(&)[N]) -> const char* {} - )(std::declval())); -}; - } // namespace impl template @@ -110,7 +102,7 @@ struct Tuple<> { }; }; template -Tuple(Ts&&...) -> Tuple::type...>; +Tuple(Ts&&...) -> Tuple...>; template consteval auto ListFromTuple(Tuple) -> TypeList {