[ox/std] Fix C++20 deprecation issue with Vector::iterator
This commit is contained in:
parent
0739c7d611
commit
179d311598
3
deps/ox/src/ox/std/vector.hpp
vendored
3
deps/ox/src/ox/std/vector.hpp
vendored
@ -139,8 +139,7 @@ class Vector: detail::VectorAllocator<T, SmallVectorSize> {
|
||||
}
|
||||
}
|
||||
|
||||
constexpr typename std::iterator<std::bidirectional_iterator_tag, T>::difference_type
|
||||
operator-(const iterator &other) const noexcept {
|
||||
constexpr auto operator-(const iterator &other) const noexcept {
|
||||
if constexpr(reverse) {
|
||||
return m_offset + other.m_offset;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user