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

Method SharedFromThisVBase

tests/test_smart_ptr.cpp:244–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242// Issue #865: shared_from_this doesn't work with virtual inheritance
243struct SharedFromThisVBase : std::enable_shared_from_this<SharedFromThisVBase> {
244 SharedFromThisVBase() = default;
245 SharedFromThisVBase(const SharedFromThisVBase &) = default;
246 virtual ~SharedFromThisVBase() = default;
247};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected