From 33934a5479fe52c4071a1f869b444b9a4ae82487 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Thu, 7 Mar 2024 15:49:01 +0000 Subject: [PATCH] Add Type in TypeList if using only 1 type --- include/utempl/type_list.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/utempl/type_list.hpp b/include/utempl/type_list.hpp index 4597a86..87c3bbe 100644 --- a/include/utempl/type_list.hpp +++ b/include/utempl/type_list.hpp @@ -19,6 +19,11 @@ template struct TypeList { }; +template +struct TypeList { + using Type = T; +}; + template inline constexpr auto kType = TypeList{};