Change bool_constant to integral_constant.
authorZachary Turner <zturner@google.com>
Fri, 20 Jul 2018 16:51:55 +0000 (16:51 +0000)
committerZachary Turner <zturner@google.com>
Fri, 20 Jul 2018 16:51:55 +0000 (16:51 +0000)
bool_constant is C++17.

llvm-svn: 337576

llvm/include/llvm/ADT/STLExtras.h

index d1756d4..94365dd 100644 (file)
@@ -61,7 +61,8 @@ using ValueOfRange = typename std::remove_reference<decltype(
 //     Extra additions to <type_traits>
 //===----------------------------------------------------------------------===//
 
-template <typename T> struct negation : std::bool_constant<!bool(T::value)> {};
+template <typename T>
+struct negation : std::integral_constant<bool, !bool(T::value)> {};
 
 template <typename...> struct conjunction : std::true_type {};
 template <typename B1> struct conjunction<B1> : B1 {};