Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyContainer {
- bool has_child;
- MyChild child;
- public:
- MyContainer(MyChild child) { this->has_child = true; this->child = child; }
- MyContainer() { this->has_child = false; }
- ~MyContainer() {
- if (!this->has_child) {
- // What to do here?
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement