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

Method method

tests/test_methods_and_attributes.cpp:224–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222// In C++17, overload_cast must have noexcept variants to resolve noexcept overloads.
223struct NoexceptOverloaded {
224 py::str method(int) noexcept { return "(int)"; }
225 py::str method(int) const noexcept { return "(int) const"; }
226 py::str method(float) noexcept { return "(float)"; }
227};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected