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

Function diamond_addrs

tests/test_class_sh_mi_thunks.cpp:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90};
91
92DiamondAddrs diamond_addrs() {
93 auto sp = std::make_shared<Diamond>();
94 return DiamondAddrs{reinterpret_cast<uintptr_t>(sp.get()),
95 reinterpret_cast<uintptr_t>(static_cast<VBase *>(sp.get())),
96 reinterpret_cast<uintptr_t>(static_cast<Left *>(sp.get())),
97 reinterpret_cast<uintptr_t>(static_cast<Right *>(sp.get()))};
98}
99
100// Animal-Cat-Tiger reproducer copied from PR #5796
101// clone_raw_ptr, clone_unique_ptr added under PR #5836

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected