Browse Source

any: make VS happy :)

Michele Caini 5 năm trước cách đây
mục cha
commit
550c021097
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/entt/core/any.hpp

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

@@ -329,7 +329,7 @@ public:
 
 
 private:
 private:
     vtable_type *vtable;
     vtable_type *vtable;
-    union { const void *instance = nullptr; storage_type storage; };
+    union { const void *instance; storage_type storage{}; };
 };
 };