Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What garbage collectors are there available for C++?

What garbage collectors are there available for C++? Are you using any of them? With what results?

like image 768
Bartosz Radaczyński Avatar asked Jan 21 '09 15:01

Bartosz Radaczyński


1 Answers

The Boost library includes some shared_ptr stuff that basically acts as a reference counting garbage collector. If you embrace the RAII principle of C++ design, that and auto_ptr will fill your need for a "garbage collector".

like image 184
rmeador Avatar answered Oct 22 '22 16:10

rmeador