Currently I am solving my problem with boost::shared_ptr
but the semantics is not quite right, since I am "transplanting" members from one object to another. I was looking through this list but it didn't yield too much. Same goes for my brief google searches.
Essentially I am looking for a unique_ptr
implementation that works with my gcc4.2 (Hence the restriction to not use C++11)