You might want to consider using a smart reference pointer instead.

Check out the auto_ref_ptr class in the following link:
http://code.axter.com/auto_ref_ptr.h