fixup! gcc build error

This commit is contained in:
Xiaoge Su 2022-07-08 12:54:10 -07:00
parent ead1aa5bc1
commit 75b69d7774

View File

@ -143,9 +143,9 @@ public:
// Retrieves the resource as a pointer, throws operation_cancelled if the resource is not available // Retrieves the resource as a pointer, throws operation_cancelled if the resource is not available
T* operator->() const { T* operator->() const {
if (!ResourceOwningRef<T>::available()) if (!ResourceWeakRef<T>::available())
throw operation_cancelled(); throw operation_cancelled();
return ResourceOwningRef<T>::resourceRef->resource; return ResourceWeakRef<T>::resourceRef->resource;
} }
// Gets the reference to the resource, Throws operation_cancelled if the resource is not available // Gets the reference to the resource, Throws operation_cancelled if the resource is not available