Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the intent clearer in manage_as_static
Summary: Add a comment clarifying why we use a ctor that alliases an empty `shared_ptr` in `manage_as_static`. Without a comment it's a bit hard to figure out the behavior we get from the docs in https://en.cppreference.com/w/cpp/memory/shared_ptr/shared_ptr, esp. since the set of relevant overloads changed in C++20. Reviewed By: praihan Differential Revision: D70422993 fbshipit-source-id: de642aa1f4d7ba73c82821923a052b666c54b3f6
- Loading branch information