A
A
Anton2010-10-19 18:56:18
C++ / C#
Anton, 2010-10-19 18:56:18

Libraries for garbage collection in C++?

Good day ...
I want to know if anyone has used garbage solutions in C ++, and if so, which ones, and is it worth the effort, or will it be easier to manage memory yourself?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
apangin, 2010-10-19
@apangin

This one is one of the most famous. But for small projects it may seem a bit heavy. If the GC is needed only for a simple auxiliary module (for example, I needed it for a simple scripting engine), it's easier to write your own implementation of mark-sweep, it will fit in a hundred or two lines of code. An example is, say, the GC in the K virtual machine.

B
BaJlepa, 2010-10-19
@BaJlepa

To be honest, I don't know if such systems exist, but in my opinion there is nothing easier than using smart pointers and standard library containers for this purpose.

D
dmomen, 2010-10-19
@dmomen

Have a look at boost .

B
bya, 2011-11-11
@bya

Simple and efficient "garbage collection" in C ++
freehabr.ru/blog/cpp/1757.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question