Safe C++:一种使C++内存安全的新提案
原文英文,约500词,阅读约需2分钟。发表于: 。The goal of the Safe C++ proposal is extending C++ by defining a superset of the language that can be used to write code with the strong safety guarantees similarly to code written in Rust. The...
Safe C++提案由Sean Baxter和Christian Mazakas提出,旨在扩展C++,使其具备类似Rust的安全性。通过引入安全上下文,Safe C++仅允许使用严格安全的C++子集,解决内存不安全问题,并提供现有代码与新特性共存的迁移路径。该提案尚未完成,仍需解决设计问题。