C++ std::weak_ptr::lock() seems to be executed at the same time as the destructor
I have a scenario where I need to use weak_ptr to cache resources. When applying for this resource, I must ensure that it was released last time.But I found a problem.for example