Explorar o código

meta: avoid using meta_any::resolve when comparing

skypjack hai 7 meses
pai
achega
c5d89597fc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/entt/meta/meta.hpp

+ 1 - 1
src/entt/meta/meta.hpp

@@ -583,7 +583,7 @@ public:
 
 
     /*! @copydoc any::operator== */
     /*! @copydoc any::operator== */
     [[nodiscard]] bool operator==(const meta_any &other) const noexcept {
     [[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!= */
     /*! @copydoc any::operator!= */