diff --git a/tests/std/tests/P0009R18_mdspan_default_accessor/test.cpp b/tests/std/tests/P0009R18_mdspan_default_accessor/test.cpp index 5402186a9f0..aa0e829edb2 100644 --- a/tests/std/tests/P0009R18_mdspan_default_accessor/test.cpp +++ b/tests/std/tests/P0009R18_mdspan_default_accessor/test.cpp @@ -28,7 +28,7 @@ constexpr void test_one(array elems) { static_assert(semiregular); // Check if default_accessor is empty - static_assert(std::is_empty_v); + static_assert(is_empty_v); // Check nested types static_assert(same_as); diff --git a/tests/std/tests/P0009R18_mdspan_extents/test.cpp b/tests/std/tests/P0009R18_mdspan_extents/test.cpp index 58fd6ff5acb..9252e7b4a84 100644 --- a/tests/std/tests/P0009R18_mdspan_extents/test.cpp +++ b/tests/std/tests/P0009R18_mdspan_extents/test.cpp @@ -36,7 +36,7 @@ constexpr void check_members(index_sequence) { // Check static observers static_assert(Ext::rank() == sizeof...(Extents)); - static_assert(Ext::rank_dynamic() == ((Extents == dynamic_extent) + ... + 0)); + static_assert(Ext::rank_dynamic() == (size_t{Extents == dynamic_extent} + ... + 0)); static_assert(((Ext::static_extent(Indices) == Extents) && ...)); // Check noexceptness of static observers @@ -67,7 +67,7 @@ constexpr void check_members(index_sequence) { Ext2 ext2{ext.extent(Indices)...}; assert(((ext.extent(Indices) == ext2.extent(Indices)) && ...)); assert(ext == ext2); - static_assert(is_nothrow_constructible_v); + static_assert(is_nothrow_constructible_v); // Other tests are defined in 'check_construction_from_extents_pack' function }