mirror of
https://github.com/BlackMATov/ecs.hpp.git
synced 2026-01-04 15:16:50 +07:00
fix warnings
This commit is contained in:
9
ecs.hpp
9
ecs.hpp
@@ -122,7 +122,8 @@ namespace ecs_hpp
|
|||||||
}
|
}
|
||||||
|
|
||||||
iterator end() noexcept {
|
iterator end() noexcept {
|
||||||
return dense_.begin() + size_;
|
using dt = typename std::iterator_traits<iterator>::difference_type;
|
||||||
|
return begin() + static_cast<dt>(size_);
|
||||||
}
|
}
|
||||||
|
|
||||||
const_iterator begin() const noexcept {
|
const_iterator begin() const noexcept {
|
||||||
@@ -130,7 +131,8 @@ namespace ecs_hpp
|
|||||||
}
|
}
|
||||||
|
|
||||||
const_iterator end() const noexcept {
|
const_iterator end() const noexcept {
|
||||||
return dense_.begin() + size_;
|
using dt = typename std::iterator_traits<const_iterator>::difference_type;
|
||||||
|
return begin() + static_cast<dt>(size_);
|
||||||
}
|
}
|
||||||
|
|
||||||
const_iterator cbegin() const noexcept {
|
const_iterator cbegin() const noexcept {
|
||||||
@@ -138,7 +140,8 @@ namespace ecs_hpp
|
|||||||
}
|
}
|
||||||
|
|
||||||
const_iterator cend() const noexcept {
|
const_iterator cend() const noexcept {
|
||||||
return dense_.cbegin() + size_;
|
using dt = typename std::iterator_traits<const_iterator>::difference_type;
|
||||||
|
return cbegin() + static_cast<dt>(size_);
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
bool insert(const T v) {
|
bool insert(const T v) {
|
||||||
|
|||||||
Reference in New Issue
Block a user