diff options
-rw-r--r-- | common/algorithm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/algorithm.h b/common/algorithm.h index d6790afbe9..7a0eed89ce 100644 --- a/common/algorithm.h +++ b/common/algorithm.h @@ -100,7 +100,7 @@ char *fill(char *first, char *last, Value val) { * Sets all elements in the range [first, last) to val. */ template<class In, class Value> -In fill(In first, In last, Value val) { +In fill(In first, In last, const Value &val) { while (first != last) *first++ = val; return first; |