summaryrefslogtreecommitdiffstats
path: root/Source/cmAlgorithms.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-03-09 18:00:49 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-04-05 15:54:55 (GMT)
commit9f60f19ee955fbc8d4f964d5bb0080ed07bc0d00 (patch)
treeaa583ad0360a6fa87373216724395f3963770863 /Source/cmAlgorithms.h
parent063c07e097c073df95dc5f3948d9b294b19ffd33 (diff)
downloadCMake-9f60f19ee955fbc8d4f964d5bb0080ed07bc0d00.zip
CMake-9f60f19ee955fbc8d4f964d5bb0080ed07bc0d00.tar.gz
CMake-9f60f19ee955fbc8d4f964d5bb0080ed07bc0d00.tar.bz2
cmList: CMake list implementation
Fixes: #24548
Diffstat (limited to 'Source/cmAlgorithms.h')
-rw-r--r--Source/cmAlgorithms.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h
index a1830f9..2c3ee9b 100644
--- a/Source/cmAlgorithms.h
+++ b/Source/cmAlgorithms.h
@@ -95,7 +95,7 @@ typename Range::const_iterator cmRemoveIndices(Range& r, InputRange const& rem)
}
template <typename Range, typename MatchRange>
-typename Range::const_iterator cmRemoveMatching(Range& r, MatchRange const& m)
+auto cmRemoveMatching(Range& r, MatchRange const& m) -> decltype(r.begin())
{
return std::remove_if(r.begin(), r.end(),
ContainerAlgorithms::BinarySearcher<MatchRange>(m));