summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/views/span.sub/last.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/containers/views/span.sub/last.pass.cpp')
-rw-r--r--libcxx/test/std/containers/views/span.sub/last.pass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/containers/views/span.sub/last.pass.cpp b/libcxx/test/std/containers/views/span.sub/last.pass.cpp
index e0a399ff9cd..2864a7f65e5 100644
--- a/libcxx/test/std/containers/views/span.sub/last.pass.cpp
+++ b/libcxx/test/std/containers/views/span.sub/last.pass.cpp
@@ -10,7 +10,7 @@
// <span>
-// template<ptrdiff_t Count>
+// template<size_t Count>
// constexpr span<element_type, Count> last() const;
//
// constexpr span<element_type, dynamic_extent> last(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 last<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 last<Count>())));
OpenPOWER on IntegriCloud