diff --git a/src/common/math_util.h b/src/common/math_util.h index eed8c275..045e0259 100644 --- a/src/common/math_util.h +++ b/src/common/math_util.h @@ -16,7 +16,7 @@ namespace Common { * do not work when the /permissive- flag is enabled. */ template -constexpr T Sum(T first, Ts ...rest) { +constexpr T Sum(T first, Ts&&... rest) { if constexpr (sizeof...(rest) == 0) { return first; } else {