forked from OSchip/llvm-project
Fix compilation of Any.h header.
In a previous patch I changed `std::decay<T>::type` to `std::decay<T>` rather than `std::decay_t<T>`. This seems to have broken the build *only for clang-cl*. I don't know why. Submitting with post-commit review because this is an obvious fix for a build breakage and we've verified that it fixes the breakage.
This commit is contained in:
parent
7c426fb1a6
commit
17b7741812
|
@ -74,7 +74,7 @@ public:
|
||||||
// adopting it to work-around usage of `Any` with types that
|
// adopting it to work-around usage of `Any` with types that
|
||||||
// need to be implicitly convertible from an `Any`.
|
// need to be implicitly convertible from an `Any`.
|
||||||
llvm::negation<std::is_convertible<Any, std::decay_t<T>>>,
|
llvm::negation<std::is_convertible<Any, std::decay_t<T>>>,
|
||||||
std::is_copy_constructible<std::decay<T>>>::value,
|
std::is_copy_constructible<std::decay_t<T>>>::value,
|
||||||
int> = 0>
|
int> = 0>
|
||||||
Any(T &&Value) {
|
Any(T &&Value) {
|
||||||
Storage =
|
Storage =
|
||||||
|
|
Loading…
Reference in New Issue