fixup! Remove C++20 attribute

This commit is contained in:
Xiaoge Su 2022-07-08 11:46:56 -07:00
parent 90b887f394
commit ead1aa5bc1

View File

@ -143,7 +143,7 @@ public:
// Retrieves the resource as a pointer, throws operation_cancelled if the resource is not available
T* operator->() const {
if (!ResourceOwningRef<T>::available()) [[unlikely]]
if (!ResourceOwningRef<T>::available())
throw operation_cancelled();
return ResourceOwningRef<T>::resourceRef->resource;
}