MCPcopy Create free account
hub / github.com/pybind/pybind11 / func_handle

Function func_handle

include/pybind11/functional.h:25–29  ·  view source on GitHub ↗

This triggers a syntax error under very special conditions (very weird indeed).

Source from the content-addressed store, hash-verified

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;

Callers 1

loadMethod · 0.85

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected