Fixed pointer to ref conversion

This commit is contained in:
2020-04-18 14:28:27 +02:00
parent fba15b1a72
commit 4a9095aee7

View File

@ -131,10 +131,10 @@ public:
}
CONSTEXPR ring_buffer_const_iterator operator+(difference_type n) const NOEXCEPT {
return {container_ptr, front, index + n};
return {*container_ptr, front, index + n};
}
CONSTEXPR ring_buffer_const_iterator operator-(difference_type n) const NOEXCEPT {
return {container_ptr, front, index - n};
return {*container_ptr, front, index - n};
}
CONSTEXPR reference operator*() const COND_NOEXCEPT(noexcept(container_ptr->cbegin()) &&noexcept(container_ptr->size())) {