Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Feb 11, 2024
1 parent 8891615 commit f913438
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/flatmemory/details/types/vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ namespace flatmemory
constexpr bool is_trivial = IsTriviallyCopyable<T>;
if constexpr (is_trivial) {
for (size_t i = 0; i < m_data.size(); ++i) {
m_buffer.write(buffer_size, m_data[i]);
buffer_size += sizeof(T_);
buffer_size += m_buffer.write(buffer_size, m_data[i]);
}
} else {
/* For dynamic type T, we store the offsets first */
Expand Down

0 comments on commit f913438

Please sign in to comment.