Browse Source

organizer: wrap std::min to trick windows.h (close #710)

Michele Caini 4 years ago
parent
commit
d3372dc05c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/organizer.hpp

+ 1 - 1
src/entt/entity/organizer.hpp

@@ -160,7 +160,7 @@ class basic_organizer final {
             return {};
         } else {
             type_info info[sizeof...(Type)]{type_id<Type>()...};
-            const auto length = std::min(count, sizeof...(Type));
+            const auto length = (std::min)(count, sizeof...(Type));
             std::copy_n(info, length, buffer);
             return length;
         }