From 66df3d37d751ef3ef0fa37bb72ef96ee7e53a714 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Mon, 23 Oct 2023 13:16:59 -0400 Subject: IS_CONSTRUCTABLE macro assumes is_default_constructable --- src/macros.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/macros.hpp b/src/macros.hpp index 02ebb3d..176f7b1 100644 --- a/src/macros.hpp +++ b/src/macros.hpp @@ -8,7 +8,7 @@ #define CAFE_BABE(T) reinterpret_cast(0xCAFEBABE) -#define IS_CONSTRUCTIBLE(T) constexpr(std::is_constructible::value && !std::is_integral::value && !std::is_floating_point::value) +#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 TypeSafeInt2_H(TypeName, Type, Max, TypeName_T, TypeName_MAX, TypeName_T_MAX)\ -- cgit v1.2.3