#include using namespace std; class HeapInt { public: explicit HeapInt(int i) { cout<<"new int\n"; i_ = new int(i); } ~HeapInt() // sup with the tilde ??!~~~ { cout<<"delete int\n"; delete i_; } int &value() { return *i_; } private: int *i_; }; void foo(int i) { int *j = new int(i); cout<<"*i = "<<*j<<"\ni = "<