Michele Caini пре 8 година
родитељ
комит
a7278573a8
1 измењених фајлова са 1 додато и 11 уклоњено
  1. 1 11
      src/entt/core/hashed_string.hpp

+ 1 - 11
src/entt/core/hashed_string.hpp

@@ -65,16 +65,6 @@ public:
         : hash{helper(offset, wrapper.str)}, str{wrapper.str}
     {}
 
-    /*! @brief Default copy constructor. */
-    constexpr HashedString(const HashedString &) noexcept = default;
-    /*! @brief Default move constructor. */
-    constexpr HashedString(HashedString &&) noexcept = default;
-
-    /*! @brief Default copy assignment operator. @return This hashed string. */
-    constexpr HashedString & operator=(const HashedString &) noexcept = default;
-    /*! @brief Default move assignment operator. @return This hashed string. */
-    constexpr HashedString & operator=(HashedString &&) noexcept = default;
-
     /**
      * @brief Returns the human-readable representation of a hashed string.
      * @return The string used to initialize the instance.
@@ -97,7 +87,7 @@ public:
     }
 
 private:
-    hash_type hash;
+    const hash_type hash;
     const char *str;
 };