From: Christopher Dykes Date: Wed, 12 Apr 2017 17:44:00 +0000 (-0700) Subject: Make folly::StrictConjunction usable under MSVC X-Git-Tag: v2017.04.17.00~31 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=44ce72fdb5b5dca54f799f62c2e8c7791c2e2fcc;p=folly.git 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 --- 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