You're just reinventing smart pointers that have existed for yonks. Read up on how to use Boost smart pointers. In fact, reserve a few days just to get an idea of what you can achieve with Boost, it's a huge library.
bagsc writes "BBC News reports Twentieth Centruy Fox confirms The Simpsons are going to the movies! Should hit theatres in 2007." From the article: "A 25-second trailer for the film has been shown to US audiences at screenings of Ice Age: The Meltdown, promising to introduce 'the greatest hero in American history'. It then cut to Homer Simpson, wearing only his underwear, who admitted: 'I forgot what I was supposed to say.'"