diff --git a/src/ltpl/tuple.hpp b/src/ltpl/tuple.hpp index 703b4ea..4ed6295 100644 --- a/src/ltpl/tuple.hpp +++ b/src/ltpl/tuple.hpp @@ -53,6 +53,13 @@ concept WeaklyEqualityComparableWith = { u != t } -> ConvertibleTo; }; +// Not including for std::tuple_size_v +template +inline constexpr std::size_t tuple_size_v = 1; + +template +inline constexpr std::size_t tuple_size_v> = sizeof...(T); + // Test that the types list does not contain just one element that is decay-equal to T. template inline constexpr bool is_not_exactly_v = true; @@ -483,12 +490,12 @@ template template [[nodiscard]] constexpr decltype(auto) tuple_cat(Tuples&&... tuples) noexcept { - constexpr auto total_size = (std::tuple_size_v> + ...); + constexpr auto total_size = (detail::tuple_size_v> + ...); constexpr auto indices = [&] { std::array array{}; size_t i{}; - for (std::size_t outer{}; auto tuple_size : {std::tuple_size_v>...}) + for (std::size_t outer{}; auto tuple_size : {detail::tuple_size_v>...}) { for (size_t inner{}; inner != tuple_size; ++inner) {