From 75b69d777458717d7d923a6c14ac256a06b94ddb Mon Sep 17 00:00:00 2001 From: Xiaoge Su Date: Fri, 8 Jul 2022 12:54:10 -0700 Subject: [PATCH] fixup! gcc build error --- flow/include/flow/OwningResource.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flow/include/flow/OwningResource.h b/flow/include/flow/OwningResource.h index 23280a77c1..9635129733 100644 --- a/flow/include/flow/OwningResource.h +++ b/flow/include/flow/OwningResource.h @@ -143,9 +143,9 @@ public: // Retrieves the resource as a pointer, throws operation_cancelled if the resource is not available T* operator->() const { - if (!ResourceOwningRef::available()) + if (!ResourceWeakRef::available()) throw operation_cancelled(); - return ResourceOwningRef::resourceRef->resource; + return ResourceWeakRef::resourceRef->resource; } // Gets the reference to the resource, Throws operation_cancelled if the resource is not available