summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-10-23 13:16:59 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-10-23 13:23:55 -0400
commit66df3d37d751ef3ef0fa37bb72ef96ee7e53a714 (patch)
treec3dafcde8c8f81cadc34aba85cd1b79ad5264762 /src
parentf400971f58a1c5e43d96e5bdce82d608ad88af3a (diff)
IS_CONSTRUCTABLE macro assumes is_default_constructable
Diffstat (limited to 'src')
-rw-r--r--src/macros.hpp2
1 files changed, 1 insertions, 1 deletions
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<T *>(0xCAFEBABE)
-#define IS_CONSTRUCTIBLE(T) constexpr(std::is_constructible<T>::value && !std::is_integral<T>::value && !std::is_floating_point<T>::value)
+#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 TypeSafeInt2_H(TypeName, Type, Max, TypeName_T, TypeName_MAX, TypeName_T_MAX)\