Update smart_ptr.