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)
| 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 | |
| 30 | std::shared_ptr<SomeLib> SomeLib::getInstance() { |
nothing calls this directly
no outgoing calls
no test coverage detected