[ox/std] Make safeDelete constexpr
All checks were successful
Build / build (push) Successful in 2m32s

This commit is contained in:
Gary Talent 2024-04-29 22:43:27 -05:00
parent 0f2c18d554
commit be1f90955b

View File

@ -51,12 +51,12 @@ namespace ox {
*/
template<typename T>
void safeDelete(T *val) requires(sizeof(T) >= 1) {
constexpr void safeDelete(T *val) requires(sizeof(T) >= 1) {
delete val;
}
template<typename T>
void safeDeleteArray(T *val) requires(sizeof(T) >= 1) {
constexpr void safeDeleteArray(T *val) requires(sizeof(T) >= 1) {
delete[] val;
}