registry value shared_ptr