diff options
Diffstat (limited to 'libcxx/test/std/containers/views/span.sub/first.pass.cpp')
-rw-r--r-- | libcxx/test/std/containers/views/span.sub/first.pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/containers/views/span.sub/first.pass.cpp b/libcxx/test/std/containers/views/span.sub/first.pass.cpp index f9da9fdc233..30ab130381c 100644 --- a/libcxx/test/std/containers/views/span.sub/first.pass.cpp +++ b/libcxx/test/std/containers/views/span.sub/first.pass.cpp @@ -10,7 +10,7 @@ // <span> -// template<ptrdiff_t Count> +// template<size_t Count> // constexpr span<element_type, Count> first() const; // // constexpr span<element_type, dynamic_extent> first(index_type count) const; @@ -25,7 +25,7 @@ #include "test_macros.h" -template <typename Span, ptrdiff_t Count> +template <typename Span, size_t Count> constexpr bool testConstexprSpan(Span sp) { LIBCPP_ASSERT((noexcept(sp.template first<Count>()))); @@ -45,7 +45,7 @@ constexpr bool testConstexprSpan(Span sp) } -template <typename Span, ptrdiff_t Count> +template <typename Span, size_t Count> void testRuntimeSpan(Span sp) { LIBCPP_ASSERT((noexcept(sp.template first<Count>()))); |