meta: avoid using node in meta_any if not necessary

This commit is contained in:
skypjack
2025-09-01 18:40:06 +02:00
parent d058ccd084
commit 5e99452cf3

View File

@@ -592,12 +592,12 @@ public:
* @return False if the wrapper is invalid, true otherwise.
*/
[[nodiscard]] explicit operator bool() const noexcept {
return !(node.info == nullptr);
return !(vtable == nullptr);
}
/*! @copydoc any::operator== */
[[nodiscard]] bool operator==(const meta_any &other) const noexcept {
return (ctx == other.ctx) && (node.info == other.node.info) && (storage == other.storage);
return (ctx == other.ctx) && (resolve == other.resolve) && (storage == other.storage);
}
/*! @copydoc any::operator!= */