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

Method id

tests/test_class_sh_inheritance.cpp:47–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45// Not reusing base here because it would interfere with the single-inheritance test.
46struct drvd2 : base1, base2 {
47 int id() const override { return 3 * base1::base_id + 4 * base2::base_id; }
48};
49
50// clang-format off

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected