From eaf97ed840e750a8bdb5be560524cf5a57eea46d Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Fri, 6 Oct 2023 03:08:36 -0700 Subject: [PATCH] Fix Clang warning on reference-stability test Summary: Implicit typename is a C++20 feature, hence a warning is issued since we compile tests in C++17 mode. Fix by adding missing `typename`. Reviewed By: ezgicicek Differential Revision: D50005984 fbshipit-source-id: fb724ad7e9937cdb549e8fec71392e50a2a6db40 --- .../tests/codetoanalyze/cpp/pulse/reference_stability.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/infer/tests/codetoanalyze/cpp/pulse/reference_stability.cpp b/infer/tests/codetoanalyze/cpp/pulse/reference_stability.cpp index aa4d0800185..3420843b221 100644 --- a/infer/tests/codetoanalyze/cpp/pulse/reference_stability.cpp +++ b/infer/tests/codetoanalyze/cpp/pulse/reference_stability.cpp @@ -252,10 +252,10 @@ class F14FastMap : public std::conditional< sizeof(std::pair) < 24, F14ValueMap, f14::detail::F14VectorMapImpl>::type { - using Super = - std::conditional) < 24, - F14ValueMap, - f14::detail::F14VectorMapImpl>::type; + using Super = typename std::conditional< + sizeof(std::pair) < 24, + F14ValueMap, + f14::detail::F14VectorMapImpl>::type; using Super::Super; }; } // namespace folly