[libcxx-commits] [libcxx] ecd64c4 - [libcxx][test] Properly qualify uses of std::size_t

Casey Carter via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jan 14 11:41:33 PST 2022


Author: Casey Carter
Date: 2022-01-14T11:41:27-08:00
New Revision: ecd64c4e1546ea2e08168d81b97792da89cae0c1

URL: https://github.com/llvm/llvm-project/commit/ecd64c4e1546ea2e08168d81b97792da89cae0c1
DIFF: https://github.com/llvm/llvm-project/commit/ecd64c4e1546ea2e08168d81b97792da89cae0c1.diff

LOG: [libcxx][test] Properly qualify uses of std::size_t

To silence modular build error https://reviews.llvm.org/harbormaster/unit/view/1854595/

Added: 
    

Modified: 
    libcxx/test/std/containers/views/span.cons/initializer_list.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/containers/views/span.cons/initializer_list.pass.cpp b/libcxx/test/std/containers/views/span.cons/initializer_list.pass.cpp
index 914ad7861e6f7..bcb34a9f2e596 100644
--- a/libcxx/test/std/containers/views/span.cons/initializer_list.pass.cpp
+++ b/libcxx/test/std/containers/views/span.cons/initializer_list.pass.cpp
@@ -21,12 +21,12 @@ struct Sink {
     constexpr Sink(Sink*) {}
 };
 
-constexpr size_t count(std::span<const Sink> sp) {
+constexpr std::size_t count(std::span<const Sink> sp) {
     return sp.size();
 }
 
 template<int N>
-constexpr size_t countn(std::span<const Sink, N> sp) {
+constexpr std::size_t countn(std::span<const Sink, N> sp) {
     return sp.size();
 }
 


        


More information about the libcxx-commits mailing list