From 44ce72fdb5b5dca54f799f62c2e8c7791c2e2fcc Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Wed, 12 Apr 2017 10:44:00 -0700 Subject: [PATCH 1/1] Make folly::StrictConjunction usable under MSVC Summary: Template pack expansion plays much nicer when being expanded into the template parameters of a base class than it does as the template parameters to a templated `using` when under MSVC. This fixes the other half of `folly::exception_wrapper`. Reviewed By: yfeldblum Differential Revision: D4874047 fbshipit-source-id: 6593d10f8737b940bd550353e54f43bc96402a48 --- folly/Traits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/Traits.h b/folly/Traits.h index 4be2282c..01222add 100644 --- a/folly/Traits.h +++ b/folly/Traits.h @@ -386,8 +386,8 @@ struct Bools { // Lighter-weight than Conjunction, but evaluates all sub-conditions eagerly. template -using StrictConjunction = - std::is_same, Bools>; +struct StrictConjunction + : std::is_same, Bools> {}; } // namespace folly -- 2.34.1