Skip to content

Commit f0e58a6

Browse files
committed
Fix compilation with clang 4.0 in -std=c++1z mode
1 parent 62e5fef commit f0e58a6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/pybind11/common.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,12 +427,8 @@ template<size_t N> using make_index_sequence = typename make_index_sequence_impl
427427
template <bool B> using bool_constant = std::integral_constant<bool, B>;
428428
template <typename T> struct negation : bool_constant<!T::value> { };
429429

430-
#ifdef __cpp_lib_void_t
431-
using std::void_t;
432-
#else
433430
template <typename...> struct void_t_impl { using type = void; };
434431
template <typename... Ts> using void_t = typename void_t_impl<Ts...>::type;
435-
#endif
436432

437433
/// Compile-time all/any/none of that check the boolean value of all template types
438434
#ifdef __cpp_fold_expressions

0 commit comments

Comments
 (0)