mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
Change bool_constant to integral_constant.
bool_constant is C++17. llvm-svn: 337576
This commit is contained in:
parent
e54725804d
commit
c149ab9745
@ -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 {};
|
||||
|
Loading…
Reference in New Issue
Block a user