summaryrefslogtreecommitdiffstats
path: root/Source/cmFileLockPool.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmFileLockPool.cxx')
-rw-r--r--Source/cmFileLockPool.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmFileLockPool.cxx b/Source/cmFileLockPool.cxx
index 4ca924b..99f6885 100644
--- a/Source/cmFileLockPool.cxx
+++ b/Source/cmFileLockPool.cxx
@@ -2,6 +2,7 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmFileLockPool.h"
+#include <algorithm>
#include <cassert>
#include <utility>
@@ -145,7 +146,8 @@ cmFileLockResult cmFileLockPool::ScopePool::Release(
bool cmFileLockPool::ScopePool::IsAlreadyLocked(
const std::string& filename) const
{
- return std::any_of(
- this->Locks.begin(), this->Locks.end(),
- [&filename](auto const& lock) { return lock.IsLocked(filename); });
+ return std::any_of(this->Locks.begin(), this->Locks.end(),
+ [&filename](cmFileLock const& lock) -> bool {
+ return lock.IsLocked(filename);
+ });
}