Răsfoiți Sursa

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

skypjack 3 luni în urmă
părinte
comite
2df0073f53
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      src/entt/signal/dispatcher.hpp
  2. 1 1
      src/entt/signal/emitter.hpp

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

@@ -115,7 +115,7 @@ class basic_dispatcher {
 
 
     using alloc_traits = std::allocator_traits<Allocator>;
     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_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>
     template<typename Type>
     [[nodiscard]] handler_type<Type> &assure(const id_type id) {
     [[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 alloc_traits = std::allocator_traits<Allocator>;
     using container_allocator = typename alloc_traits::template rebind_alloc<std::pair<const key_type, mapped_type>>;
     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:
 public:
     /*! @brief Allocator type. */
     /*! @brief Allocator type. */