Commit 44ce72fd authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

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
parent 68a3d541
......@@ -386,8 +386,8 @@ struct Bools {
// Lighter-weight than Conjunction, but evaluates all sub-conditions eagerly.
template <class... Ts>
using StrictConjunction =
std::is_same<Bools<Ts::value..., true>, Bools<true, Ts::value...>>;
struct StrictConjunction
: std::is_same<Bools<Ts::value..., true>, Bools<true, Ts::value...>> {};
} // namespace folly
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment