@@ -1578,22 +1578,6 @@ class class_ : public detail::generic_type {
1578
1578
return *this ;
1579
1579
}
1580
1580
1581
- // Nvidia's NVCC is broken between 11.4.0 and 11.8.0
1582
- // https://github.com/pybind/pybind11/issues/4193
1583
- #if defined(__CUDACC__) && (__CUDACC_VER_MAJOR__ == 11) && (__CUDACC_VER_MINOR__ >= 4) \
1584
- && (__CUDACC_VER_MINOR__ <= 8 )
1585
- template <typename T, typename ... Extra>
1586
- class_ &def (const T &op, const Extra &...extra) {
1587
- op.execute (*this , extra...);
1588
- return *this ;
1589
- }
1590
-
1591
- template <typename T, typename ... Extra>
1592
- class_ &def_cast (const T &op, const Extra &...extra) {
1593
- op.execute_cast (*this , extra...);
1594
- return *this ;
1595
- }
1596
- #else
1597
1581
template <detail::op_id id, detail::op_type ot, typename L, typename R, typename ... Extra>
1598
1582
class_ &def (const detail::op_<id, ot, L, R> &op, const Extra &...extra) {
1599
1583
op.execute (*this , extra...);
@@ -1605,7 +1589,6 @@ class class_ : public detail::generic_type {
1605
1589
op.execute_cast (*this , extra...);
1606
1590
return *this ;
1607
1591
}
1608
- #endif
1609
1592
1610
1593
template <typename ... Args, typename ... Extra>
1611
1594
class_ &def (const detail::initimpl::constructor<Args...> &init, const Extra &...extra) {
0 commit comments