Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
pebal
3y ago
0 comments
Save
Share
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
0 comments
3 comments · 1 top-level
top
newest
oldest
jb1991
3y ago
· 2 in thread
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++.
pebal
OP
3y ago
You may be surprised. Herb Sutter wants to add optional GC to C++ 'syntax 2'.
jb1991
3y ago
Sitter’s idea in that is a different matter entirely.
j
/
k
navigate · click thread line to collapse