Get the latest tech news
Rusty.hpp: A Borrow Checker and Memory Ownership System for C++20
A Borrow Checker and Memory Ownership System for C++20 (heavily inspired from Rust) - Jaysmito101/rusty.hpp
At the core, the idea is to have implement a minimal and lightweight yet powerful and performant system to be able to emulate Rust's borrow checker and general memory model as a C++ header-only library. Quoting from rust-lang.org, the borrow check is Rust's "secret sauce" – it is tasked with enforcing a number of properties: This can also be a simple tool for C++ developers to try and get an idea of the typical workflows in a Rust dev environment staying in their comfort zone of C++.
Or read this on Hacker News