Jelajahi Sumber

stl: std::static_pointer_cast

skypjack 1 bulan lalu
induk
melakukan
92a03e184d
2 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 2 2
      src/entt/entity/registry.hpp
  2. 1 0
      src/entt/stl/memory.hpp

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

@@ -1049,7 +1049,7 @@ public:
         using handler_type = group_type::handler;
         using handler_type = group_type::handler;
 
 
         if(auto it = groups.find(group_type::group_id()); it != groups.cend()) {
         if(auto it = groups.find(group_type::group_id()); it != groups.cend()) {
-            return {*std::static_pointer_cast<handler_type>(it->second)};
+            return {*stl::static_pointer_cast<handler_type>(it->second)};
         }
         }
 
 
         stl::shared_ptr<handler_type> handler{};
         stl::shared_ptr<handler_type> handler{};
@@ -1073,7 +1073,7 @@ public:
         using handler_type = group_type::handler;
         using handler_type = group_type::handler;
 
 
         if(auto it = groups.find(group_type::group_id()); it != groups.cend()) {
         if(auto it = groups.find(group_type::group_id()); it != groups.cend()) {
-            return {*std::static_pointer_cast<handler_type>(it->second)};
+            return {*stl::static_pointer_cast<handler_type>(it->second)};
         }
         }
 
 
         return {};
         return {};

+ 1 - 0
src/entt/stl/memory.hpp

@@ -16,6 +16,7 @@ using std::allocator_traits;
 using std::make_unique;
 using std::make_unique;
 using std::pointer_traits;
 using std::pointer_traits;
 using std::shared_ptr;
 using std::shared_ptr;
+using std::static_pointer_cast;
 using std::unique_ptr;
 using std::unique_ptr;
 
 
 } // namespace entt::stl
 } // namespace entt::stl