summaryrefslogtreecommitdiff
path: root/src/diff.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-09-07 19:38:34 +0800
committerMaxime Coste <mawww@kakoune.org>2017-09-07 19:38:34 +0800
commitfdf7cf394414860628b39534d899de47152848bb (patch)
tree9eda06161ede06c216f3a28a03dc1825fb7aab01 /src/diff.hh
parentbd66aff808350e8d51246f184e121c0224d166a3 (diff)
Small code simplifications
Diffstat (limited to 'src/diff.hh')
-rw-r--r--src/diff.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.hh b/src/diff.hh
index cb28921c..49c5b504 100644
--- a/src/diff.hh
+++ b/src/diff.hh
@@ -168,7 +168,7 @@ void find_diff_rec(Iterator a, int begA, int endA,
append_diff(diffs, {Diff::Keep, suffix_len, 0});
}
-template<typename Iterator, typename Equal = std::equal_to<typename std::iterator_traits<Iterator>::value_type>>
+template<typename Iterator, typename Equal = std::equal_to<>>
Vector<Diff> find_diff(Iterator a, int N, Iterator b, int M, Equal eq = Equal{})
{
const int max = 2 * (N + M) + 1;