Procházet zdrojové kódy

removed useless remove_reference_t

Michele Caini před 7 roky
rodič
revize
44856c6207
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/entt/entity/registry.hpp

+ 1 - 1
src/entt/entity/registry.hpp

@@ -796,7 +796,7 @@ public:
     template<typename Component, typename... Args>
     Component & get_or_assign(const entity_type entity, Args &&... args) ENTT_NOEXCEPT {
         assert(valid(entity));
-        auto *cpool = assure<std::remove_reference_t<Component>>();
+        auto *cpool = assure<Component>();
         auto *comp = cpool->try_get(entity);
         return comp ? *comp : cpool->construct(entity, std::forward<Args>(args)...);
     }