Merge branch 'feature/plus_zero' of https://github.com/RobertLeahy/container into RobertLeahy-feature/plus_zero

This commit is contained in:
Ion Gaztañaga
2020-01-14 16:09:30 +01:00
2 changed files with 52 additions and 0 deletions

View File

@@ -234,6 +234,8 @@ class deque_iterator
deque_iterator& operator+=(difference_type n) BOOST_NOEXCEPT_OR_NOTHROW
{
if (!n)
return *this;
BOOST_ASSERT(!!m_cur);
difference_type offset = n + (this->m_cur - this->m_first);
const difference_type block_size = this->m_last - this->m_first;