mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-17 03:12:21 +08:00
fixup! Remove C++20 attribute
This commit is contained in:
parent
90b887f394
commit
ead1aa5bc1
@ -143,7 +143,7 @@ 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()) [[unlikely]]
|
if (!ResourceOwningRef<T>::available())
|
||||||
throw operation_cancelled();
|
throw operation_cancelled();
|
||||||
return ResourceOwningRef<T>::resourceRef->resource;
|
return ResourceOwningRef<T>::resourceRef->resource;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user