Quote Originally Posted by Paul McKenzie View Post
there is no way to delete something that isn't a pointer value
Well this could be what he's after, but delete on a stack based object has to be undefined behaviour I think.
Code:
class X
{
public:
operator X*()
{
returnthis;
}
};
int main()
{
X x;
delete x;
}
PS:- How comes copy/paste from my msvc9 express ruins all indentation. Ive set to use spaces instead of tabs like on all previous versions but my code never cut/pastes properly??