diff --git a/quicktex/util.h b/quicktex/util.h index e001a06..4bf062c 100644 --- a/quicktex/util.h +++ b/quicktex/util.h @@ -100,11 +100,9 @@ template constexpr std::array ExpandAr return res; } -template constexpr auto MapArray(const std::array &input, Fn&& op) { +template constexpr auto MapArray(const std::array &input, Fn op) { std::array, N> output; - for (unsigned i = 0; i < N; i++) { - output[i] = op(input[i]); - } + for (unsigned i = 0; i < N; i++) { output[i] = op(input[i]); } return output; }