ソースを参照

config: fixed ENTT_IS_EMPTY macro definition

Michele Caini 6 年 前
コミット
628a17ae72
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/entt/config/config.h

+ 2 - 1
src/entt/config/config.h

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