Просмотр исходного кода

any: discard the no longer necessary operator!=

skypjack 2 месяцев назад
Родитель
Сommit
656a2d2036
1 измененных файлов с 0 добавлено и 9 удалено
  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.