Thread: c++ query
View Single Post
Old 26-07-2007, 07:34 AM   #5 (permalink)
sakumar79
Human Spambot
 
Join Date: Nov 2004
Location: Madurai
Posts: 2,347
Default Re: c++ query

I think the way the objects work is that they are automatically removed when they go out of scope and that we cannot manually invoke the destructor to remove it... Not 100% sure though...

Try one thing... After the call to destructor, see if you can still access it (for eg, create a method hi to print hi, and call the method after the destructor call... It should work...

void main()
{
{
base test;
test.~base();
test.hi();
}
}

Arun
sakumar79 is offline