Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. class MyContainer {
  2. bool has_child;
  3. MyChild child;
  4.  
  5. public:
  6. MyContainer(MyChild child) { this->has_child = true; this->child = child; }
  7. MyContainer() { this->has_child = false; }
  8.  
  9. ~MyContainer() {
  10. if (!this->has_child) {
  11. // What to do here?
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement