From f92ef27cf361d820954174747acf36eb016bf316 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Wed, 28 Feb 2024 13:14:33 +0000 Subject: [PATCH] Changes in utils --- include/utempl/utils.hpp | 51 ++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/include/utempl/utils.hpp b/include/utempl/utils.hpp index 1f47d13..9bbaba8 100644 --- a/include/utempl/utils.hpp +++ b/include/utempl/utils.hpp @@ -52,12 +52,34 @@ inline constexpr auto Times(auto&& f) { }(std::make_index_sequence()); }; +template +inline constexpr std::size_t kTupleSize = []() -> std::size_t { + static_assert(!sizeof(T), "Not Found"); + return 0; +}(); + template -concept TupleLike = Overloaded( - []