From a955532d8b3038333c7a73a07c3c1727d8413028 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Tue, 26 Jul 2016 15:52:25 -0700 Subject: [PATCH] Get MSVC able to construct an Indestructible Summary: It didn't like using `decltype(args)`, which wasn't really necessary as we already have it's type. Reviewed By: yfeldblum Differential Revision: D3623424 fbshipit-source-id: 994c23cbf486d427c6dd0fe4c6f768e51ea15ad1 --- folly/Indestructible.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Indestructible.h b/folly/Indestructible.h index 39c8f151..15e03c9d 100644 --- a/folly/Indestructible.h +++ b/folly/Indestructible.h @@ -62,7 +62,7 @@ class Indestructible final { public: template explicit constexpr Indestructible(Args&&... args) noexcept( - std::is_nothrow_constructible::value) + std::is_nothrow_constructible::value) : storage_(std::forward(args)...), inited_(true) {} ~Indestructible() = default; -- 2.34.1