Explorar o código

type_info: cleanup

Michele Caini %!s(int64=4) %!d(string=hai) anos
pai
achega
b7dd26121a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/entt/core/type_info.hpp

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

@@ -273,7 +273,7 @@ private:
 template<typename Type>
 [[nodiscard]] const type_info &type_id() ENTT_NOEXCEPT {
     if constexpr(std::is_same_v<Type, std::remove_cv_t<std::remove_reference_t<Type>>>) {
-        static type_info instance{std::in_place_type<std::remove_cv_t<std::remove_reference_t<Type>>>};
+        static type_info instance{std::in_place_type<Type>};
         return instance;
     } else {
         return type_id<std::remove_cv_t<std::remove_reference_t<Type>>>();