From 700f21301116558829466af0644f5685beb0ab67 Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Sat, 9 Jan 2021 19:15:43 -0700 Subject: [PATCH] TestTypeTraits: Fix incorrectly namespaced nullptr_t Problem: - Clang ToT fails to build `AK/Tests/TestTypeTraits.cpp` because `nullptr_t` is missing the `std` namespace qualifier. Solution: - Prepend the namespace qualifier. --- AK/Tests/TestTypeTraits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Tests/TestTypeTraits.cpp b/AK/Tests/TestTypeTraits.cpp index 0492160a9a..768e4c6b51 100644 --- a/AK/Tests/TestTypeTraits.cpp +++ b/AK/Tests/TestTypeTraits.cpp @@ -58,7 +58,7 @@ struct Empty { TEST_CASE(FundamentalTypeClassification) { EXPECT_TRAIT_TRUE(IsVoid, void); - EXPECT_TRAIT_FALSE(IsVoid, int, Empty, nullptr_t); + EXPECT_TRAIT_FALSE(IsVoid, int, Empty, std::nullptr_t); EXPECT_TRAIT_TRUE(IsNullPointer, std::nullptr_t); EXPECT_TRAIT_FALSE(IsNullPointer, void, int, Empty, decltype(0));