Skip to content

Commit

Permalink
Fix GCC 14 -Wtemplate-id-cdtor warnings
Browse files Browse the repository at this point in the history
Co-Authored-By: Rémi Verschelde <[email protected]>
(cherry picked from commit a5c8106)
  • Loading branch information
timothyqiu authored and akien-mga committed May 11, 2024
1 parent 004ce6d commit 470ef4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/ring_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ class RingBuffer {
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
4 changes: 2 additions & 2 deletions core/safe_refcount.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class SafeNumeric {
}
}

_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);
}
};
Expand Down Expand Up @@ -257,7 +257,7 @@ class SafeNumeric {
}
}

_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) {
}
};
Expand Down

0 comments on commit 470ef4d

Please sign in to comment.