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

Method clone_raw_ptr

tests/test_class_sh_mi_thunks.cpp:128–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 Tiger &operator=(const Tiger &) = default;
127 ~Tiger() override = default;
128 Animal *clone_raw_ptr() const override {
129 return new Tiger(*this); // upcast
130 }
131 std::shared_ptr<Animal> clone_shared_ptr() const override {
132 return std::make_shared<Tiger>(*this); // upcast
133 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected