A
Alamelu
I have overloaded a new operater for a class that returns void * and i have
created an object for that class in heap as below.
CMyClass *pMyClass = new CMyClass(); // Here though i haven't explicitly
casted void* to CMyClass, the compiler doesnt give error at all.
But in c++ for void* to specific type ptr , explicite cast is required. What
was the cause for the above statement to work?
Regards,
Alamelu
created an object for that class in heap as below.
CMyClass *pMyClass = new CMyClass(); // Here though i haven't explicitly
casted void* to CMyClass, the compiler doesnt give error at all.
But in c++ for void* to specific type ptr , explicite cast is required. What
was the cause for the above statement to work?
Regards,
Alamelu