[ox/std] Make safeDelete constexpr
All checks were successful
Build / build (push) Successful in 2m32s
All checks were successful
Build / build (push) Successful in 2m32s
This commit is contained in:
parent
0f2c18d554
commit
be1f90955b
4
deps/ox/src/ox/std/memory.hpp
vendored
4
deps/ox/src/ox/std/memory.hpp
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user