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

Method method

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

Source from the content-addressed store, hash-verified

232// Exercises overload_cast with ref-qualified member function pointers.
233struct RefQualifiedOverloaded {
234 py::str method(int) & { return "(int) &"; }
235 py::str method(int) const & { return "(int) const &"; }
236 py::str method(float) && { return "(float) &&"; }
237 py::str method(float) const && { return "(float) const &&"; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected