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

Method VirtBase

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

Source from the content-addressed store, hash-verified

12template <int> // Using int as a trick to easily generate multiple types.
13struct VirtBase {
14 VirtBase() = default;
15 virtual ~VirtBase() = default;
16 VirtBase(const VirtBase &) = delete;
17 virtual int get_code() { return 100; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected