MCPcopy Create free account
hub / github.com/ThePhD/sol2 / ~SomeLib

Method ~SomeLib

examples/source/singleton.cpp:26–27  ·  view source on GitHub ↗

destructor must be public to work with std::shared_ptr and friends if you need it to be private, you must implement a custom deleter with access to the private members (e.g., a deleter struct defined in this class)

Source from the content-addressed store, hash-verified

24 // a custom deleter with access to the private members
25 // (e.g., a deleter struct defined in this class)
26 ~SomeLib() {
27 }
28};
29
30std::shared_ptr<SomeLib> SomeLib::getInstance() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected