Jelajahi Sumber

fix wwylele's comment and use typename in templates

Lectem 9 tahun lalu
induk
melakukan
2ee472b9c7
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      src/core/hle/ipc_helpers.h

+ 4 - 4
src/core/hle/ipc_helpers.h

@@ -53,8 +53,8 @@ public:
     void Push(u32 value) {
     void Push(u32 value) {
         cmdbuf[index++] = value;
         cmdbuf[index++] = value;
     }
     }
-    template <typename First, class... Other>
-    void Push(First first_value, const Other&... other_values) {
+    template <typename First, typename... Other>
+    void Push(const First& first_value, const Other&... other_values) {
         Push(first_value);
         Push(first_value);
         Push(other_values...);
         Push(other_values...);
     }
     }
@@ -144,7 +144,7 @@ public:
     template <typename T>
     template <typename T>
     void Pop(T& value);
     void Pop(T& value);
 
 
-    template <typename First, class... Other>
+    template <typename First, typename... Other>
     void Pop(First& first_value, Other&... other_values);
     void Pop(First& first_value, Other&... other_values);
 
 
     Kernel::Handle PopHandle();
     Kernel::Handle PopHandle();
@@ -211,7 +211,7 @@ void RequestParser::Pop(T& value) {
     value = Pop<T>();
     value = Pop<T>();
 }
 }
 
 
-template <typename First, class... Other>
+template <typename First, typename... Other>
 void RequestParser::Pop(First& first_value, Other&... other_values) {
 void RequestParser::Pop(First& first_value, Other&... other_values) {
     first_value = Pop<First>();
     first_value = Pop<First>();
     Pop(other_values...);
     Pop(other_values...);