Skip to main content
gamedev.net
🔒 Locked

delete void* pointers

Started by ToohrVyk Aug 22, 2006 at 5:51 PM 1 replies 500+ views
Original Post
ToohrVyk
ToohrVyk
It is my understanding that in the following situation, A's destructor will not be called, even if it is virtual. Am I correct?
void* a = new A();
delete a;
This has no bearing to actual code, only a quick refresher (as I happen not to have the standard here with me).
SiCrane
SiCrane
No, it won't be called.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.