Quick Q: Is it possible to have automatically generated destructors in C++? -- StackOverflow

Quick A: Yes, and we do!

Recently on SO -- the selected answer is the correct one:

Is it possible to have automatically generated destructors in C++?

It is too big burden to do it by ourselves all the time. Is it so hard for the compiler to generate destructors? Can't it detect what is a "resource" and release it in the destructor?

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.