Ver código fonte

workaround for an issue of VS2017 (close #316)

Michele Caini 6 anos atrás
pai
commit
fbdbe848c5
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/entt/core/family.hpp

+ 1 - 1
src/entt/core/family.hpp

@@ -18,7 +18,7 @@ namespace entt {
  */
  */
 template<typename...>
 template<typename...>
 class family {
 class family {
-    inline static ENTT_MAYBE_ATOMIC(ENTT_ID_TYPE) identifier;
+    inline static ENTT_MAYBE_ATOMIC(ENTT_ID_TYPE) identifier{};
 
 
     template<typename...>
     template<typename...>
     // clang (since version 9) started to complain if auto is used instead of ENTT_ID_TYPE
     // clang (since version 9) started to complain if auto is used instead of ENTT_ID_TYPE