[ox/std] Fix C++20 deprecation issue with Vector::iterator

This commit is contained in:
Gary Talent 2022-03-16 03:19:45 -05:00
parent 0739c7d611
commit 179d311598

@ -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 {