Selaa lähdekoodia

any: discard the no longer necessary operator!=

skypjack 2 kuukautta sitten
vanhempi
commit
656a2d2036
1 muutettua tiedostoa jossa 0 lisäystä ja 9 poistoa
  1. 0 9
      src/entt/core/any.hpp

+ 0 - 9
src/entt/core/any.hpp

@@ -479,15 +479,6 @@ public:
         return (!*this && !other);
     }
 
-    /**
-     * @brief Checks if two wrappers differ in their content.
-     * @param other Wrapper with which to compare.
-     * @return True if the two objects differ in their content, false otherwise.
-     */
-    [[nodiscard]] bool operator!=(const basic_any &other) const noexcept {
-        return !(*this == other);
-    }
-
     /**
      * @brief Aliasing constructor.
      * @return A wrapper that shares a reference to an unmanaged object.