Finish std::shared_ptr -> Ref migration

This commit is contained in:
2025-09-11 15:06:04 -04:00
parent a2da7fba84
commit 0561d951d4
5 changed files with 34 additions and 24 deletions

View File

@@ -318,7 +318,7 @@ template <typename T> struct WeakRef {
* @brief Attempt to promote WeakRef to Ref
* @return Valid Ref if object still alive, empty Ref otherwise
*/
Ref<T> lock() {
Ref<T> lock() const {
if (!control_block) {
return Ref<T>();
}