Original Post
when creating a pointer, does it call it's constructor? myType *pObj = NULL; pObj = pDifferentObject; did pObj call it's constructor?
Quote:
Original post by EvilKnuckles666
ok, then that's good. because I have a singleton object that has a static object to make sure there's only one and if there's more, it deletes that one in the constructor.
Quote:
Original post by SiCrane
If I understand what you're asking, the answer is no.
Quote:
Original post by MrAccident
Then, destroy it in the destructor.
Quote:
Original post by ToohrVyk Quote:
Original post by MrAccident
Then, destroy it in the destructor.
Destroy what, in what destructor?
Quote:
Original post by ToohrVyk
Destroy what, in what destructor?
Quote:
Original post by EvilKnuckles666
when creating a pointer, does it call it's constructor?
myType *pObj = NULL;
pObj = pDifferentObject;
did pObj call it's constructor?
Quote:
Original post by Bregma
operators on built-in types cannot be overloaded.
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more