@@ -1578,22 +1578,6 @@ class class_ : public detail::generic_type {
15781578 return *this ;
15791579 }
15801580
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
15971581 template <detail::op_id id, detail::op_type ot, typename L, typename R, typename ... Extra>
15981582 class_ &def (const detail::op_<id, ot, L, R> &op, const Extra &...extra) {
15991583 op.execute (*this , extra...);
@@ -1605,7 +1589,6 @@ class class_ : public detail::generic_type {
16051589 op.execute_cast (*this , extra...);
16061590 return *this ;
16071591 }
1608- #endif
16091592
16101593 template <typename ... Args, typename ... Extra>
16111594 class_ &def (const detail::initimpl::constructor<Args...> &init, const Extra &...extra) {
0 commit comments