From ffe7c271f572a0a679e0a1510adcbedb11da7c02 Mon Sep 17 00:00:00 2001 From: Christian Trott Date: Thu, 2 May 2024 17:47:09 -0600 Subject: [PATCH] Make test for dims C++14 compatible --- tests/test_dims.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_dims.cpp b/tests/test_dims.cpp index 4de05e7f..7ceb6f35 100644 --- a/tests/test_dims.cpp +++ b/tests/test_dims.cpp @@ -32,18 +32,18 @@ template void test_dims_with_one_template_argument() { using d = MDSPAN_IMPL_STANDARD_NAMESPACE :: MDSPAN_IMPL_PROPOSED_NAMESPACE :: dims; - static_assert(test::is_extents_v); - static_assert(std::is_same_v); - static_assert(d::rank() == Rank); + static_assert(test::is_extents_v, "dims is not an extents specialization"); + static_assert(std::is_same::value, "dims::index_type is wrong"); + static_assert(d::rank() == Rank, "dims::rank() is wrong"); } template void test_dims_with_two_template_arguments() { using d = MDSPAN_IMPL_STANDARD_NAMESPACE :: MDSPAN_IMPL_PROPOSED_NAMESPACE :: dims; - static_assert(test::is_extents_v); - static_assert(std::is_same_v); - static_assert(d::rank() == Rank); + static_assert(test::is_extents_v, "dims is not an extents specialization"); + static_assert(std::is_same::value, "dims::index_type is wrong"); + static_assert(d::rank() == Rank, "dims::rank() is wrong"); } } // namespace test