Explorar el Código

* : minor changes

Michele Caini hace 4 años
padre
commit
940a799207
Se han modificado 2 ficheros con 8 adiciones y 3 borrados
  1. 1 1
      src/entt/core/any.hpp
  2. 7 2
      src/entt/core/type_info.hpp

+ 1 - 1
src/entt/core/any.hpp

@@ -196,7 +196,7 @@ public:
           descriptor{other.descriptor},
           mode{other.mode}
     {
-        vtable(operation::MOVE, other, this);
+        other.vtable(operation::MOVE, other, this);
     }
 
     /*! @brief Frees the internal storage, whatever it means. */

+ 7 - 2
src/entt/core/type_info.hpp

@@ -233,9 +233,14 @@ private:
 
 
 /**
- * @brief Returns the type info object for a given type.
+ * @brief Returns the type info object associated to a given type.
+ *
+ * The type doesn't need to be a complete type. If the type is a reference, the
+ * result refers to the referenced type. In all cases, top-level cv-qualifiers
+ * are ignored.
+ *
  * @tparam Type Type for which to generate a type info object.
- * @return The type info object for the given type.
+ * @return A properly initialized type info object.
  */
 template<typename Type>
 [[nodiscard]] constexpr type_info type_id() ENTT_NOEXCEPT {