From 2bb913b898d63f80829b252fc3a978b4e2e0ef48 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 26 Oct 2022 10:57:58 +0200 Subject: [PATCH] any: suppress warnings C4706 due to asserts --- src/entt/core/any.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/core/any.hpp b/src/entt/core/any.hpp index 6f103ca78..0095a4031 100644 --- a/src/entt/core/any.hpp +++ b/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(); vtable = nullptr; mode = policy::owner;