From: Christopher Dykes Date: Tue, 26 Jul 2016 22:52:25 +0000 (-0700) Subject: Get MSVC able to construct an Indestructible X-Git-Tag: v2016.07.29.00~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a955532d8b3038333c7a73a07c3c1727d8413028;p=folly.git 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 --- 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;