projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fffa9b5
)
Change bool_constant to integral_constant.
author
Zachary Turner
<zturner@google.com>
Fri, 20 Jul 2018 16:51:55 +0000
(16:51 +0000)
committer
Zachary 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
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/STLExtras.h
b/llvm/include/llvm/ADT/STLExtras.h
index
d1756d4
..
94365dd
100644
(file)
--- a/
llvm/include/llvm/ADT/STLExtras.h
+++ b/
llvm/include/llvm/ADT/STLExtras.h
@@
-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 {};