summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-12-21 17:37:24 -0500
committerJonathan Bradley <jcb@pikum.xyz>2023-12-23 11:42:23 -0500
commit6fa3b137c74536d2bab77f3309ca5b4c60953fe0 (patch)
treed4a57465267b61cee9b75403b82c971434a82f0b
parent56d47935845c312189fdc8a05f0bb08935632478 (diff)
don't try to destruct arrays
-rw-r--r--src/macros.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/macros.hpp b/src/macros.hpp
index 30f1c77..aaf5590 100644
--- a/src/macros.hpp
+++ b/src/macros.hpp
@@ -9,7 +9,7 @@
#define CAFE_BABE(T) reinterpret_cast<T *>(0xCAFEBABE)
#define IS_CONSTRUCTIBLE(T) constexpr(std::is_default_constructible<T>::value && !std::is_integral<T>::value && !std::is_floating_point<T>::value)
-#define IS_DESTRUCTIBLE(T) constexpr(std::is_destructible<T>::value && !std::is_integral<T>::value && !std::is_floating_point<T>::value)
+#define IS_DESTRUCTIBLE(T) constexpr(std::is_destructible<T>::value && !std::is_integral<T>::value && !std::is_floating_point<T>::value && !std::is_array<T>::value)
#define TypeSafeInt2_H(TypeName, Type, Max, TypeName_T, TypeName_MAX, TypeName_T_MAX)\
using TypeName_T = Type; \