mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 09:58:50 +08:00
fixup! gcc build error
This commit is contained in:
parent
ead1aa5bc1
commit
75b69d7774
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user