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
40 views
asked Dec 9, 2010 by anonymous
edited Dec 14, 2010 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 Dec 9, 2010 by anonymous

Related questions

+1 vote
1 answer 40 views
40 views asked Dec 9, 2010 by anonymous
0 votes
1 answer 67 views
+1 vote
1 answer 1,203 views
1,203 views asked Dec 9, 2010 by anonymous
0 votes
1 answer 72 views
0 votes
1 answer 21 views
...