Y
Hacker News
new
|
ask
|
show
|
jobs
by
pebal
1190 days ago
C++ does not have garbage collection in the standard library, just as shared_ptr was not part of the standard library in the past. You can currently have optional garbage collection in C++:
https://github.com/pebal/sgcl
1 comments
jb1991
1190 days ago
C++ can do pretty much anything, but that doesn't mean that it’s typical to do so. In practice, you will never see a garbage collector in C++.
link
pebal
1190 days ago
You may be surprised. Herb Sutter wants to add optional GC to C++ 'syntax 2'.
link
jb1991
1190 days ago
Sitter’s idea in that is a different matter entirely.
link