[llvm] r348731 - Speculatively fixing the build; it seems add_pointer_t and add_const_t are not implemented everywhere.
Aaron Ballman via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 9 12:04:54 PST 2018
Author: aaronballman
Date: Sun Dec 9 12:04:54 2018
New Revision: 348731
URL: http://llvm.org/viewvc/llvm-project?rev=348731&view=rev
Log:
Speculatively fixing the build; it seems add_pointer_t and add_const_t are not implemented everywhere.
Modified:
llvm/trunk/include/llvm/ADT/STLExtras.h
Modified: llvm/trunk/include/llvm/ADT/STLExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/STLExtras.h?rev=348731&r1=348730&r2=348731&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/STLExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/STLExtras.h Sun Dec 9 12:04:54 2018
@@ -72,7 +72,8 @@ struct conjunction<B1, Bn...>
: std::conditional<bool(B1::value), conjunction<Bn...>, B1>::type {};
template <typename T> struct make_const_ptr {
- using type = std::add_pointer_t<std::add_const_t<T>>;
+ using type =
+ typename std::add_pointer<typename std::add_const<T>::type>::type;
};
//===----------------------------------------------------------------------===//
// Extra additions to <functional>
More information about the llvm-commits
mailing list