From 628a17ae72fa65bf9f40ad7a3379d257a4e2711b Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 3 Apr 2020 00:49:47 +0200 Subject: [PATCH] config: fixed ENTT_IS_EMPTY macro definition --- src/entt/config/config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/entt/config/config.h b/src/entt/config/config.h index 1a68737e3..8c95c4a56 100644 --- a/src/entt/config/config.h +++ b/src/entt/config/config.h @@ -46,8 +46,9 @@ # include # define ENTT_IS_EMPTY(Type) std::is_empty_v #else +# include # // sfinae-friendly definition -# define ENTT_IS_EMPTY(Type) decltype(Type, bool{}){} +# define ENTT_IS_EMPTY(Type) (false && std::is_empty_v) #endif