Enforce template syntax typename over class

(cherry picked from commit 87f5fb0691)
This commit is contained in:
Thaddeus Crews
2024-03-10 16:02:43 -05:00
committed by David Snopek
parent 98ad839827
commit 7473b984cb
38 changed files with 224 additions and 224 deletions

View File

@@ -84,7 +84,7 @@ constexpr auto CLAMP(const T m_a, const T2 m_min, const T3 m_max) {
// Generic swap template.
#ifndef SWAP
#define SWAP(m_x, m_y) __swap_tmpl((m_x), (m_y))
template <class T>
template <typename T>
inline void __swap_tmpl(T &x, T &y) {
T aux = x;
x = y;
@@ -138,7 +138,7 @@ static inline int get_shift_from_power_of_2(unsigned int p_bits) {
return -1;
}
template <class T>
template <typename T>
static _FORCE_INLINE_ T nearest_power_of_2_templated(T x) {
--x;