diff --git a/src/entt/core/type_info.hpp b/src/entt/core/type_info.hpp index 3b22eedbd..029a973f9 100644 --- a/src/entt/core/type_info.hpp +++ b/src/entt/core/type_info.hpp @@ -140,7 +140,7 @@ struct type_name final { /*! @brief Implementation specific information about a type. */ class type_info final { template - friend constexpr const type_info &type_id() ENTT_NOEXCEPT; + friend const type_info &type_id() ENTT_NOEXCEPT; template constexpr type_info(std::in_place_type_t) ENTT_NOEXCEPT @@ -253,7 +253,7 @@ private: * @return A properly initialized type info object. */ template -[[nodiscard]] constexpr const type_info &type_id() ENTT_NOEXCEPT { +[[nodiscard]] const type_info &type_id() ENTT_NOEXCEPT { static type_info instance{std::in_place_type>>}; return instance; }