Hacker News new | ask | show | jobs
by qalmakka 1868 days ago
Yeah - Rust can, because it also ensures you can't exchange data unsafely between threads, but C++ can't. That's why `std::shared_ptr` has to be thread-safe.