mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 14:15:11 +00:00
VS 15.8.0 Preview 4.0 has a bug with alias templates (#1462)
* VS 15.8.0 Preview 4.0 has a bug with alias templates
This commit is contained in:
parent
470e718a41
commit
d0c1d286cb
@ -482,7 +482,7 @@ template <typename...> struct void_t_impl { using type = void; };
|
|||||||
template <typename... Ts> using void_t = typename void_t_impl<Ts...>::type;
|
template <typename... Ts> using void_t = typename void_t_impl<Ts...>::type;
|
||||||
|
|
||||||
/// Compile-time all/any/none of that check the boolean value of all template types
|
/// Compile-time all/any/none of that check the boolean value of all template types
|
||||||
#ifdef __cpp_fold_expressions
|
#if defined(__cpp_fold_expressions) && !(defined(_MSC_VER) && (_MSC_VER < 1916))
|
||||||
template <class... Ts> using all_of = bool_constant<(Ts::value && ...)>;
|
template <class... Ts> using all_of = bool_constant<(Ts::value && ...)>;
|
||||||
template <class... Ts> using any_of = bool_constant<(Ts::value || ...)>;
|
template <class... Ts> using any_of = bool_constant<(Ts::value || ...)>;
|
||||||
#elif !defined(_MSC_VER)
|
#elif !defined(_MSC_VER)
|
||||||
|
Loading…
Reference in New Issue
Block a user