News for hackers. Stuff that matters.
Re:Sane C++ Libraries by slaymaker1907 on Saturday January 27, 2024 @08:55PM (#39161796)
Shared pointers are most definitely not zero overhead. The trouble is that they use atomic operations which can cause tons of problems for highly concurrent systems. You can use non-thread safe smart pointers, but at some point you have to ask whether that is really lower risk than just not using shared pointers at all (Rust gets around this with type checking).

There are no comments on this comment yet.