3 ms·
A typical large C++ code base will have hundreds of reinterpret_cast<T> or C code base with void*. It's not that horrible.
by typon 5y ago
A typical large C++ code base will have hundreds of reinterpret_cast<T> or C code base with void*. It's not that horrible.
- swsieber 5y agoIIUC, transmutes in rust completely destroy lifetimes. Unsafe in rust gives you a few more things you can do, it doesn't do stuff like disable the borrow checker. But transmute basically kills lifetime checking.