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( - []