stl: std::static_pointer_cast
This commit is contained in:
@@ -1049,7 +1049,7 @@ public:
|
||||
using handler_type = group_type::handler;
|
||||
|
||||
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{};
|
||||
@@ -1073,7 +1073,7 @@ public:
|
||||
using handler_type = group_type::handler;
|
||||
|
||||
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 {};
|
||||
|
||||
@@ -16,6 +16,7 @@ using std::allocator_traits;
|
||||
using std::make_unique;
|
||||
using std::pointer_traits;
|
||||
using std::shared_ptr;
|
||||
using std::static_pointer_cast;
|
||||
using std::unique_ptr;
|
||||
|
||||
} // namespace entt::stl
|
||||
|
||||
Reference in New Issue
Block a user