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