From c5d89597fc858340dd23eef3345e8bc5d269bf2d Mon Sep 17 00:00:00 2001 From: skypjack Date: Sat, 18 Oct 2025 12:40:33 +0200 Subject: [PATCH] meta: avoid using meta_any::resolve when comparing --- src/entt/meta/meta.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index e675d9c5e..29d36852e 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -583,7 +583,7 @@ public: /*! @copydoc any::operator== */ [[nodiscard]] bool operator==(const meta_any &other) const noexcept { - return (ctx == other.ctx) && (resolve == other.resolve) && (storage == other.storage); + return (ctx == other.ctx) && (!!*this ^ !other) && (storage == other.storage); } /*! @copydoc any::operator!= */