X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Fstd-vector.hh;h=bb2103235edf518361e1be3fed8a96b6bf7c0f6b;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=48b34f12ed90ddc6a777a5c9d03ce2ded9bff6cb;hpb=5e14482b7f4f929c4a368d02185496f3f4b72cdc;p=lilypond.git diff --git a/flower/include/std-vector.hh b/flower/include/std-vector.hh index 48b34f12ed..bb2103235e 100644 --- a/flower/include/std-vector.hh +++ b/flower/include/std-vector.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2006--2011 Jan Nieuwenhuizen + Copyright (C) 2006--2015 Jan Nieuwenhuizen LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,6 +30,7 @@ #endif #endif +#include "config.hh" /* needed at least for HAVE_STL_DATA_METHOD */ #include /* find, reverse, sort */ #include /* unary_function */ #include @@ -194,7 +195,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); @@ -258,7 +259,7 @@ junk_pointers (vector &v) } vector string_split (string str, char c); -string string_join (vector const &strs, string infix); +string string_join (vector const &strs, const string &infix); #define iterof(i,s) typeof((s).begin()) i((s).begin())