Prechádzať zdrojové kódy

mixin: minor changes

Michele Caini 1 rok pred
rodič
commit
e904300c1f
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      src/entt/entity/mixin.hpp

+ 2 - 2
src/entt/entity/mixin.hpp

@@ -99,7 +99,7 @@ private:
 
 
     void pop_all() final {
     void pop_all() final {
         if(auto &reg = owner_or_assert(); !destruction.empty()) {
         if(auto &reg = owner_or_assert(); !destruction.empty()) {
-            if constexpr(std::is_same_v<typename underlying_type::element_type, typename underlying_type::entity_type>) {
+            if constexpr(std::is_same_v<typename underlying_type::element_type, entity_type>) {
                 for(typename underlying_type::size_type pos{}, last = underlying_type::free_list(); pos < last; ++pos) {
                 for(typename underlying_type::size_type pos{}, last = underlying_type::free_list(); pos < last; ++pos) {
                     destruction.publish(reg, underlying_type::base_type::operator[](pos));
                     destruction.publish(reg, underlying_type::base_type::operator[](pos));
                 }
                 }
@@ -322,7 +322,7 @@ public:
      */
      */
     template<typename... Args>
     template<typename... Args>
     decltype(auto) emplace(const entity_type hint, Args &&...args) {
     decltype(auto) emplace(const entity_type hint, Args &&...args) {
-        if constexpr(std::is_same_v<typename underlying_type::element_type, typename underlying_type::entity_type>) {
+        if constexpr(std::is_same_v<typename underlying_type::element_type, entity_type>) {
             const auto entt = underlying_type::emplace(hint, std::forward<Args>(args)...);
             const auto entt = underlying_type::emplace(hint, std::forward<Args>(args)...);
             construction.publish(owner_or_assert(), entt);
             construction.publish(owner_or_assert(), entt);
             return entt;
             return entt;