J
Jim Langston
Ron Natalie said:This is UNDEFINED BEHAVIOR... your program is incorrectJim said:int _tmain(int argc, _TCHAR* argv[])
{
base* b;
derived* d;
b = new derived;
delete b;
and there is no point in even conjecture as to what
the observable behavior is.
It has no bearing on the original problem or my answer.
What part of it is undefined behavior? AFAIK everything I did in my
program follows ANSI C and the behavior that resulted. If I'm doing
something undefined I wanna know what it is so I won't do it anymore.