quote:
Dont delete call the destructor automatically??
Why do this.... myClass->~mYClass()???
It''s a special case for when you use placement new (which is how you construct an object in RAM allocated by malloc)
Magmai Kai Holmlor
- Not For Rent
quote:
Dont delete call the destructor automatically??
Why do this.... myClass->~mYClass()???
quote:Original post by Void
You shouldn't use malloc on classes cause it may fail if there are inheritance and other C++ things.
The new does a lot of things than malloc.