[libcxx-commits] [libcxx] 6bc9a76 - [libc++][NFC] Qualify usage of nullptr_t in the format tests

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 4 07:22:36 PDT 2021


Author: Louis Dionne
Date: 2021-10-04T10:22:17-04:00
New Revision: 6bc9a767390aeb107f2733127b2bac1de77f84db

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

LOG: [libc++][NFC] Qualify usage of nullptr_t in the format tests

Added: 
    

Modified: 
    libcxx/test/std/utilities/format/format.arguments/format.arg.store/class.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/utilities/format/format.arguments/format.arg.store/class.pass.cpp b/libcxx/test/std/utilities/format/format.arguments/format.arg.store/class.pass.cpp
index 44d3a96dc65c6..49b8d8850f27c 100644
--- a/libcxx/test/std/utilities/format/format.arguments/format.arg.store/class.pass.cpp
+++ b/libcxx/test/std/utilities/format/format.arguments/format.arg.store/class.pass.cpp
@@ -22,6 +22,7 @@
 
 #include <format>
 #include <cassert>
+#include <cstddef>
 #include <type_traits>
 
 #include "test_macros.h"
@@ -61,7 +62,7 @@ void test() {
     auto store = std::make_format_args<Context>(1, 'c', nullptr);
     LIBCPP_STATIC_ASSERT(
         std::is_same_v<decltype(store),
-                       std::__format_arg_store<Context, int, char, nullptr_t>>);
+                       std::__format_arg_store<Context, int, char, std::nullptr_t>>);
     LIBCPP_STATIC_ASSERT(
         std::is_same_v<decltype(store.__args),
                        std::array<std::basic_format_arg<Context>, 3>>);


        


More information about the libcxx-commits mailing list