Explorar o código

table: fixed operator- for table iterators

Michele Caini %!s(int64=2) %!d(string=hai) anos
pai
achega
caaf332af3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/entt/entity/table.hpp

+ 1 - 1
src/entt/entity/table.hpp

@@ -110,7 +110,7 @@ private:
 
 template<typename... Lhs, typename... Rhs>
 [[nodiscard]] constexpr std::ptrdiff_t operator-(const table_iterator<Lhs...> &lhs, const table_iterator<Rhs...> &rhs) noexcept {
-    return std::get<0>(rhs.it) - std::get<0>(lhs.it);
+    return std::get<0>(lhs.it) - std::get<0>(rhs.it);
 }
 
 template<typename... Lhs, typename... Rhs>