stephane wrote:
So there can be only one destructor.
If I have declared in my class this for instance:
~Tvector(){delete[]m_values;}
there is no ~Tvector(){} anymore?
No, if you do not provide a self defined destructor, the compiler
generates a destructor for you, which can be ok, but maybe the compiler
produces the wrong one, you gave a good example, if you would not
provied this destructor, the memory alocated by operator new[] for the
pointer m_values, will not be freed, at clean up.
The compiler it self only removes things that it has allocated / created.
HTH
Nicolas