diff --git a/include/ecs/ecs.ixx b/include/ecs/ecs.ixx index 84326507..c90c184f 100644 --- a/include/ecs/ecs.ixx +++ b/include/ecs/ecs.ixx @@ -1288,7 +1288,7 @@ public: } [[nodiscard]] constexpr bool operator<(entity_id const& id) const { - return last_ < id; + return first_ < id; } // Returns the first entity in the range @@ -1696,6 +1696,7 @@ public: + #ifdef _MSC_VER #define MSVC msvc:: #else diff --git a/include/ecs/ecs_sh.h b/include/ecs/ecs_sh.h index 9951ee9b..18dc5f92 100644 --- a/include/ecs/ecs_sh.h +++ b/include/ecs/ecs_sh.h @@ -1289,7 +1289,7 @@ ECS_EXPORT class entity_range final { } [[nodiscard]] constexpr bool operator<(entity_id const& id) const { - return last_ < id; + return first_ < id; } // Returns the first entity in the range @@ -1697,6 +1697,7 @@ class component_pool_base { + #ifdef _MSC_VER #define MSVC msvc:: #else