diff options
Diffstat (limited to 'Source/cmAlgorithms.h')
-rw-r--r-- | Source/cmAlgorithms.h | 2 |
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)); |