Skip to content

Commit

Permalink
fix: PGI void_t only
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Sep 10, 2020
1 parent a1cd376 commit 20ea47f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/pybind11/detail/common.h
Expand Up @@ -501,8 +501,12 @@ template <bool... Bs> using select_indices = typename select_indices_impl<index_
template <bool B> using bool_constant = std::integral_constant<bool, B>;
template <typename T> struct negation : bool_constant<!T::value> { };

template <typename... >
using void_t = void;
#if defined(__PGIC__)
template<typename... > using void_t = void;
#else
template<typename... Ts> struct make_void { typedef void type;};
template<typename... Ts> using void_t = typename make_void<Ts...>::type;
#endif


/// Compile-time all/any/none of that check the boolean value of all template types
Expand Down

0 comments on commit 20ea47f

Please sign in to comment.