This triggers a syntax error under very special conditions (very weird indeed).
| 23 | #if !(defined(_MSC_VER) && _MSC_VER == 1916 && defined(PYBIND11_CPP17)) |
| 24 | // This triggers a syntax error under very special conditions (very weird indeed). |
| 25 | explicit |
| 26 | #endif |
| 27 | func_handle(function &&f_) noexcept |
| 28 | : f(std::move(f_)) { |
| 29 | } |
| 30 | func_handle(const func_handle &f_) { operator=(f_); } |
| 31 | func_handle &operator=(const func_handle &f_) { |
| 32 | gil_scoped_acquire acq; |