This is why smart pointers via templates don&#x27;t work well. The mold always leaks through the wallpaper. There&#x27;s no analysis at compile time to catch those errors.<p>This is what Rust is for.  You really need a borrow checker.