Library for garbage collection in C++?

0 like 0 dislike
5 views
Good day...

You want to know used anyone solution for garbage in C++, and if so which, and whether to expend the effort, or it will be easier to manage memory?
by | 5 views

5 Answers

0 like 0 dislike
Is primarily to answer the question: "Why do I need garbage collection?". If there is some specific task where it is needed, then a library to build it is necessary to select proceeding from it, the benefit of such libraries written not one, not two.
If a special problem there, but experience with C++ is — that shared_ptr, RAII techniques and a neat manual controls are gonna work out fine, does not even require special care and only understand used things.
If there are no special tasks, no experience of C++ — it is possible that the development language chosen is wrong.
by
0 like 0 dislike
This is one of the most famous. But for small projects it may seem heavy. If GC is needed only for the simple support module (for example, I needed a simple script engine), it's easier to write your own implementation of mark-sweep, and will fit in a couple of hundred lines of code. For example we can take, say, GC, K virtual machine.
by
0 like 0 dislike
Honestly, I don't know whether there are such systems, but in my opinion nothing could be simpler than using smart pointers and containers of the standard library for these purposes.
by
0 like 0 dislike
View boost.
by
0 like 0 dislike
Simple and effective "garbage collection" (garbage collection) in C++
\r
\rfreehabr.ru/blog/cpp/1757.html
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
5 answers
asked Apr 14, 2019 by ImmortalCAT
110,608 questions
257,186 answers
0 comments
28,782 users