Browse Source

meta: cleanup comparison operator

skypjack 6 months ago
parent
commit
27b9a25d06
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/meta/meta.hpp

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

@@ -587,7 +587,7 @@ public:
 
     /*! @copydoc any::operator== */
     [[nodiscard]] bool operator==(const meta_any &other) const noexcept {
-        return (ctx == other.ctx) && (((node.info == nullptr) && (other.node.info == nullptr)) || ((node.info != nullptr) && (other.node.info != nullptr) && *node.info == *other.node.info && storage == other.storage));
+        return (ctx == other.ctx) && (node.info == other.node.info) && (storage == other.storage);
     }
 
     /*! @copydoc any::operator!= */