mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-10 17:10:00 +01:00
math_util: rvalue references for std::forward
This commit is contained in:
parent
a2f8cdf0a3
commit
be907a61f7
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user