3 ms·
>It seems that C++20's concepts are a viable candidate to compete with rust safety mechanism. No, that's not really something that concepts do. But there are w
by in3d 6y ago
>It seems that C++20's concepts are a viable candidate to compete with rust safety mechanism.
No, that's not really something that concepts do. But there are ways of coding and tools using which you can get closer to Rust's safety features in C++. E.g. https://www.modernescpp.com/index.php/c-core-guidelines-lifetime-safety https://www.modernescpp.com/index.php/c-core-guidelines-life... or https://clang.llvm.org/docs/ThreadSafetyAnalysis.html https://clang.llvm.org/docs/ThreadSafetyAnalysis.html.