C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

can I explicitly call a destructor if I've allocated my object with new?

+1 vote
41 views
asked by anonymous
edited by pa

1 Answer

0 votes
Probably not.
Unless you used placement new, you should simply delete the object rather than explicitly calling the destructor.
answered by anonymous

Related questions

+1 vote
1 answer 40 views
+1 vote
1 answer 1,203 views
1,203 views asked by anonymous
0 votes
1 answer 73 views
0 votes
1 answer 21 views
...