diff --git a/common/algorithm.h b/common/algorithm.h index d6790afbe96..7a0eed89cea 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 -In fill(In first, In last, Value val) { +In fill(In first, In last, const Value &val) { while (first != last) *first++ = val; return first;