meta: avoid using meta_any::resolve when comparing

This commit is contained in:
skypjack
2025-10-18 12:40:33 +02:00
parent 091eef0e4c
commit c5d89597fc
+1 -1
View File
@@ -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!= */