This post describe an alternative to C++'s ananymous destructor by using multiples named destructors. If a type have named destructor, then not calling one when an object ends his life is a compile error. This post explore what this approach gives us. At the end of the article, a comparison to the Rust way of handling ownership is made.
You must log in or # to comment.