mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-21 20:48:39 +00:00
math_util: rvalue references for std::forward
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Common {
|
||||
* do not work when the /permissive- flag is enabled.
|
||||
*/
|
||||
template<typename T, typename... Ts>
|
||||
constexpr T Sum(T first, Ts ...rest) {
|
||||
constexpr T Sum(T first, Ts&&... rest) {
|
||||
if constexpr (sizeof...(rest) == 0) {
|
||||
return first;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user