Explorar el Código

algorithm: use std::identity instead of entt::identity

skypjack hace 3 meses
padre
commit
5ce5968d44
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/entt/core/algorithm.hpp

+ 1 - 1
src/entt/core/algorithm.hpp

@@ -94,7 +94,7 @@ struct radix_sort {
      * @param last An iterator past the last element of the range to sort.
      * @param last An iterator past the last element of the range to sort.
      * @param getter A valid _getter_ function object.
      * @param getter A valid _getter_ function object.
      */
      */
-    template<typename It, typename Getter = identity>
+    template<typename It, typename Getter = std::identity>
     void operator()(It first, It last, Getter getter = Getter{}) const {
     void operator()(It first, It last, Getter getter = Getter{}) const {
         if(first < last) {
         if(first < last) {
             constexpr auto passes = N / Bit;
             constexpr auto passes = N / Bit;