1
0
Эх сурвалжийг харах

signal: use std::identity instead of entt::identity

skypjack 3 сар өмнө
parent
commit
2df0073f53

+ 1 - 1
src/entt/signal/dispatcher.hpp

@@ -115,7 +115,7 @@ class basic_dispatcher {
 
     using alloc_traits = std::allocator_traits<Allocator>;
     using container_allocator = typename alloc_traits::template rebind_alloc<std::pair<const key_type, mapped_type>>;
-    using container_type = dense_map<key_type, mapped_type, identity, std::equal_to<>, container_allocator>;
+    using container_type = dense_map<key_type, mapped_type, std::identity, std::equal_to<>, container_allocator>;
 
     template<typename Type>
     [[nodiscard]] handler_type<Type> &assure(const id_type id) {

+ 1 - 1
src/entt/signal/emitter.hpp

@@ -39,7 +39,7 @@ class emitter {
 
     using alloc_traits = std::allocator_traits<Allocator>;
     using container_allocator = typename alloc_traits::template rebind_alloc<std::pair<const key_type, mapped_type>>;
-    using container_type = dense_map<key_type, mapped_type, identity, std::equal_to<>, container_allocator>;
+    using container_type = dense_map<key_type, mapped_type, std::identity, std::equal_to<>, container_allocator>;
 
 public:
     /*! @brief Allocator type. */