From 940a799207c3fb3cc5e8d9881ea55f13e90b8579 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 10 Sep 2021 00:04:23 +0200 Subject: [PATCH] * : minor changes --- src/entt/core/any.hpp | 2 +- src/entt/core/type_info.hpp | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/entt/core/any.hpp b/src/entt/core/any.hpp index a8c860fc3..9dde07b91 100644 --- a/src/entt/core/any.hpp +++ b/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. */ diff --git a/src/entt/core/type_info.hpp b/src/entt/core/type_info.hpp index 616b2102b..9fe05e6b2 100644 --- a/src/entt/core/type_info.hpp +++ b/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 [[nodiscard]] constexpr type_info type_id() ENTT_NOEXCEPT {