config: fixed ENTT_IS_EMPTY macro definition

This commit is contained in:
Michele Caini
2020-04-03 00:49:47 +02:00
parent 08169b9180
commit 628a17ae72

View File

@@ -46,8 +46,9 @@
# include <type_traits>
# define ENTT_IS_EMPTY(Type) std::is_empty_v<Type>
#else
# include <type_traits>
# // sfinae-friendly definition
# define ENTT_IS_EMPTY(Type) decltype(Type, bool{}){}
# define ENTT_IS_EMPTY(Type) (false && std::is_empty_v<Type>)
#endif