I am writing to clarify some comments on this website.
1) I know that C ++ does not have a garbage collector. One said that C ++ was invented before the idea of โโa garbage collector, so thatโs the reason. It's true? I think that makes sense.
2) Whenever the garbage collector was discussed, a smart point was selected (e.g. boost :: share_ptr). I once made sure that reference counting is one way to implement a garbage collector, but some say that a smart point is not an implementation of a garbage collector. What happened?
3) Some said why the garbage collector was not included in C ++ because it was difficult and many problems could not be solved. However, someone else said that there is a third-party garbage collector, regardless of whether it is commercial or free. So how do these third parties handle problems?
I am grateful if anyone can clarify my perplexities.
Many thanks!
source share