Преглед изворни кода

resource: use std::identity instead of entt::identity

skypjack пре 3 месеци
родитељ
комит
9869ab7209
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/entt/resource/cache.hpp

+ 1 - 1
src/entt/resource/cache.hpp

@@ -154,7 +154,7 @@ class resource_cache {
     using alloc_traits = std::allocator_traits<Allocator>;
     using alloc_traits = std::allocator_traits<Allocator>;
     static_assert(std::is_same_v<typename alloc_traits::value_type, Type>, "Invalid value type");
     static_assert(std::is_same_v<typename alloc_traits::value_type, Type>, "Invalid value type");
     using container_allocator = typename alloc_traits::template rebind_alloc<std::pair<const id_type, typename Loader::result_type>>;
     using container_allocator = typename alloc_traits::template rebind_alloc<std::pair<const id_type, typename Loader::result_type>>;
-    using container_type = dense_map<id_type, typename Loader::result_type, identity, std::equal_to<>, container_allocator>;
+    using container_type = dense_map<id_type, typename Loader::result_type, std::identity, std::equal_to<>, container_allocator>;
 
 
 public:
 public:
     /*! @brief Allocator type. */
     /*! @brief Allocator type. */