Преглед изворни кода

any: suppress warnings C4706 due to asserts

Michele Caini пре 3 година
родитељ
комит
2bb913b898
1 измењених фајлова са 1 додато и 1 уклоњено
  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;