Merge pull request #803 from fhuberts/fix-Winfinite-recursion

Fix compiler warnings (-Winfinite-recursion)
This commit is contained in:
Leonid Stryzhevskyi 2023-08-05 00:28:10 +03:00 committed by GitHub
commit 38e02370b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,9 @@ private:
void invalidate(const std::shared_ptr<TResource>& resource) override {
auto proxy = std::static_pointer_cast<AcquisitionProxyImpl>(resource);
if (proxy == nullptr) {
return;
}
proxy->__pool__invalidate();
const auto& handle = proxy->__pool__getUnderlyingResource();
handle.invalidator->invalidate(handle.object);