From 179d311598b22655df9e39a23a2d6c488260eac4 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 16 Mar 2022 03:19:45 -0500 Subject: [PATCH] [ox/std] Fix C++20 deprecation issue with Vector::iterator --- deps/ox/src/ox/std/vector.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deps/ox/src/ox/std/vector.hpp b/deps/ox/src/ox/std/vector.hpp index fd8f6c2d..a9ba0a86 100644 --- a/deps/ox/src/ox/std/vector.hpp +++ b/deps/ox/src/ox/std/vector.hpp @@ -139,8 +139,7 @@ class Vector: detail::VectorAllocator { } } - constexpr typename std::iterator::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 {