| 88 | public: |
| 89 | explicit MyObject1(int value) : value(value) { print_created(this, toString()); } |
| 90 | std::string toString() const override { return "MyObject1[" + std::to_string(value) + "]"; } |
| 91 | |
| 92 | protected: |
| 93 | ~MyObject1() override { print_destroyed(this); } |