3 ms·
By that definition, a C++ program with heavy usage of std::shared_ptr has GC.
by nemetroid 2y ago
By that definition, a C++ program with heavy usage of std::shared_ptr has GC.
- cmrdporcupine 2y agoAnd it does. Reference counting is garbage collection. And std::shared_ptr, or Rust's Rc/Arc are basically lightweight GC runtimes inside your program.
- coldtea 2y agoIsn't that the point?
- nemetroid 2y agoI don't think it's the point of the comment I replied to, no.