| this is a bit weird. if you have only 1 thread, you don't atomic, and thus not using atomic reference counts is fine but if you have more than 1 thread, you can't use a non-atomic refcount, so you can't use Rc but must use Arc. "but that's such a simple change, just change the decl with a 1 char addition! Pluse, Rust won't let you do bad stuff if you've forgotten to change the type". I guess I'm just old. Old enough that I've already implemented all the data structures and methods I need in C++, including safely passing around shared_ptr<T>. |