Browse Source

any: suppress warnings C4706 due to asserts

Michele Caini 3 năm trước cách đây
mục cha
commit
2bb913b898
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

@@ -352,7 +352,7 @@ public:
         }
         }
 
 
         // unnecessary but it helps to detect nasty bugs
         // unnecessary but it helps to detect nasty bugs
-        ENTT_ASSERT(!(instance = nullptr), "");
+        ENTT_ASSERT((instance = nullptr) == nullptr, "");
         info = &type_id<void>();
         info = &type_id<void>();
         vtable = nullptr;
         vtable = nullptr;
         mode = policy::owner;
         mode = policy::owner;