From b062d7bfeaa7baab1e2543417d41898ca5281c79 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Thu, 8 Dec 2011 03:07:50 -0800 Subject: [PATCH] Remove default comparison for binary search clang++ complains about this, and we never rely on the default comparison in our code. /home/gperciva/src/lilypond/flower/include/std-vector.hh:197:36: error: 'T' does not refer to a value Compare less = less (), ^ /home/gperciva/src/lilypond/flower/include/std-vector.hh:193:19: note: declared here template ^ /home/gperciva/src/lilypond/flower/include/std-vector.hh:197:40: error: expected expression Compare less = less (), --- flower/include/std-vector.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flower/include/std-vector.hh b/flower/include/std-vector.hh index 48b34f12ed..020403aea1 100644 --- a/flower/include/std-vector.hh +++ b/flower/include/std-vector.hh @@ -194,7 +194,7 @@ template vsize binary_search (vector const &v, T const &key, - Compare less = less (), + Compare less, vsize b = 0, vsize e = VPOS) { vsize lb = lower_bound (v, key, less, b, e); -- 2.39.2