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:
Justin Lebar 2020-02-12 08:05:00 -08:00
parent 7c426fb1a6
commit 17b7741812
1 changed files with 1 additions and 1 deletions

View File

@ -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 =