浏览代码

Merge pull request #91823 from timothyqiu/template-id-cdtor-3.x

[3.x] Fix GCC 14 `-Wtemplate-id-cdtor` warnings
Rémi Verschelde 1 年之前
父节点
当前提交
90aa6564a9
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      core/ring_buffer.h
  2. 2 2
      core/safe_refcount.h

+ 2 - 2
core/ring_buffer.h

@@ -211,12 +211,12 @@ public:
 		size_mask = mask;
 	};
 
-	RingBuffer<T>(int p_power = 0) {
+	RingBuffer(int p_power = 0) {
 		read_pos = 0;
 		write_pos = 0;
 		resize(p_power);
 	};
-	~RingBuffer<T>(){};
+	~RingBuffer(){};
 };
 
 #endif // RING_BUFFER_H

+ 2 - 2
core/safe_refcount.h

@@ -131,7 +131,7 @@ public:
 		}
 	}
 
-	_ALWAYS_INLINE_ explicit SafeNumeric<T>(T p_value = static_cast<T>(0)) {
+	_ALWAYS_INLINE_ explicit SafeNumeric(T p_value = static_cast<T>(0)) {
 		set(p_value);
 	}
 };
@@ -257,7 +257,7 @@ public:
 		}
 	}
 
-	_ALWAYS_INLINE_ explicit SafeNumeric<T>(T p_value = static_cast<T>(0)) :
+	_ALWAYS_INLINE_ explicit SafeNumeric(T p_value = static_cast<T>(0)) :
 			value(p_value) {
 	}
 };