From 4a252bdb842e1f23df36134ed7182de62abe9b73 Mon Sep 17 00:00:00 2001 From: skypjack Date: Wed, 8 Oct 2025 14:24:33 +0200 Subject: [PATCH] any: minor changes --- 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 4f5e2629e..787494917 100644 --- a/src/entt/core/any.hpp +++ b/src/entt/core/any.hpp @@ -465,7 +465,7 @@ public: * @return False if the two objects differ in their content, true otherwise. */ [[nodiscard]] bool operator==(const basic_any &other) const noexcept { - if(vtable && info() == other.info()) { + if(vtable && ((descriptor == other.descriptor) || has_value(other.info()))) { return (vtable(request::compare, *this, other.data()) != nullptr); }