Skip to content

Commit

Permalink
fix cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
gouarin committed Jun 26, 2024
1 parent e6a7b1e commit a2306e5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions include/scopi/container.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,13 @@ namespace scopi
m_periodic_obj_ptr -= n;

m_offset.erase(m_offset.begin(), m_offset.begin() + n);
for (auto& o : m_offset)
{
o -= total_size;
}
std::transform(m_offset.begin(),
m_offset.end(),
m_offset.begin(),
[total_size](std::size_t o)
{
return o - total_size;
});
}

template <std::size_t dim>
Expand Down

0 comments on commit a2306e5

Please sign in to comment.