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

Method get_code

tests/test_potentially_slicing_weak_ptr.cpp:17–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 virtual ~VirtBase() = default;
16 VirtBase(const VirtBase &) = delete;
17 virtual int get_code() { return 100; }
18};
19
20using VirtBaseSH = VirtBase<0>; // for testing with py::smart_holder

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected