Skip to content

Commit

Permalink
Fix Clang warning on reference-stability test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nicovank authored and facebook-github-bot committed Oct 6, 2023
1 parent d59e98e commit eaf97ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions infer/tests/codetoanalyze/cpp/pulse/reference_stability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ class F14FastMap : public std::conditional<
sizeof(std::pair<Key const, Mapped>) < 24,
F14ValueMap<Key, Mapped>,
f14::detail::F14VectorMapImpl<Key, Mapped>>::type {
using Super =
std::conditional<sizeof(std::pair<Key const, Mapped>) < 24,
F14ValueMap<Key, Mapped>,
f14::detail::F14VectorMapImpl<Key, Mapped>>::type;
using Super = typename std::conditional<
sizeof(std::pair<Key const, Mapped>) < 24,
F14ValueMap<Key, Mapped>,
f14::detail::F14VectorMapImpl<Key, Mapped>>::type;
using Super::Super;
};
} // namespace folly
Expand Down

0 comments on commit eaf97ed

Please sign in to comment.