Просмотр исходного кода

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

skypjack 3 месяцев назад
Родитель
Сommit
2df0073f53
2 измененных файлов с 2 добавлено и 2 удалено
  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 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. */