diff --git a/ecs.hpp b/ecs.hpp index 5f06862..76c7650 100644 --- a/ecs.hpp +++ b/ecs.hpp @@ -122,7 +122,8 @@ namespace ecs_hpp } iterator end() noexcept { - return dense_.begin() + size_; + using dt = typename std::iterator_traits::difference_type; + return begin() + static_cast
(size_); } const_iterator begin() const noexcept { @@ -130,7 +131,8 @@ namespace ecs_hpp } const_iterator end() const noexcept { - return dense_.begin() + size_; + using dt = typename std::iterator_traits::difference_type; + return begin() + static_cast
(size_); } const_iterator cbegin() const noexcept { @@ -138,7 +140,8 @@ namespace ecs_hpp } const_iterator cend() const noexcept { - return dense_.cbegin() + size_; + using dt = typename std::iterator_traits::difference_type; + return cbegin() + static_cast
(size_); } public: bool insert(const T v) {