switch boost/c++ shared_ptrs