Browse Source

any: suppress warnings C4706 due to asserts

Michele Caini 3 years ago
parent
commit
2bb913b898
1 changed files with 1 additions and 1 deletions
  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
-        ENTT_ASSERT(!(instance = nullptr), "");
+        ENTT_ASSERT((instance = nullptr) == nullptr, "");
         info = &type_id<void>();
         vtable = nullptr;
         mode = policy::owner;