From be907a61f77512fd435b8890dfb92c371dffcb74 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sun, 8 Apr 2018 10:37:11 +0100 Subject: [PATCH] math_util: rvalue references for std::forward --- src/common/math_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {