From 6fa3b137c74536d2bab77f3309ca5b4c60953fe0 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 21 Dec 2023 17:37:24 -0500 Subject: don't try to destruct arrays --- src/macros.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(0xCAFEBABE) #define IS_CONSTRUCTIBLE(T) constexpr(std::is_default_constructible::value && !std::is_integral::value && !std::is_floating_point::value) -#define IS_DESTRUCTIBLE(T) constexpr(std::is_destructible::value && !std::is_integral::value && !std::is_floating_point::value) +#define IS_DESTRUCTIBLE(T) constexpr(std::is_destructible::value && !std::is_integral::value && !std::is_floating_point::value && !std::is_array::value) #define TypeSafeInt2_H(TypeName, Type, Max, TypeName_T, TypeName_MAX, TypeName_T_MAX)\ using TypeName_T = Type; \ -- cgit v1.2.3