1
0
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:
Zachary Turner 2018-07-20 16:51:55 +00:00
parent e54725804d
commit c149ab9745

View 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 {};