Skip to content

Commit

Permalink
tiny
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Aug 28, 2024
1 parent 4a3b084 commit b6224b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/flatmemory/details/types/vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ class View<Vector<T>> : public IView<View<Vector<T>>>
void mutate(size_t pos, ValueType value)
requires(IsTriviallyCopyable<ValueType>)
{
write_value<View<Vector<T>>::ValueType>(m_buf + Layout<Vector<T>>::vector_data_position + pos * sizeof(T), value);
write_value<T>(m_buf + Layout<Vector<T>>::vector_data_position + pos * sizeof(T), value);
}

/**
Expand Down Expand Up @@ -571,7 +571,7 @@ class View<Vector<T>> : public IView<View<Vector<T>>>
};

ConstIterator begin() const { return ConstIterator(m_buf + Layout<Vector<T>>::vector_data_position); }
ConstIterator end() const { return View<Vector<T>>::ConstIterator(m_buf + Layout<Vector<T>>::vector_data_position + sizeof(OffsetType) * size()); }
ConstIterator end() const { return ConstIterator(m_buf + Layout<Vector<T>>::vector_data_position + sizeof(OffsetType) * size()); }

/**
* Capacity
Expand Down

0 comments on commit b6224b7

Please sign in to comment.