If I use layout* member variable as a smart pointer e.g.
usinginstead ofCode:public: auto_ptr<Layout*> layout;
Would it automatically delete the previous value upon reassignment ??Code:public: Layout* layout;
e.g. first this->layout = l1 willbe used
and then this->layout = l2 will be used.
so when l2 has been assigned would l1 be removed from memory automatically If I use smart pointer overthere ??
remember l1 and l2 are not smart pointers they are normal Layout* Pointers.