mirror of
https://github.com/Ferdi265/cxx-ring-buffer.git
synced 2025-08-01 00:24:29 +02:00
Fixed pointer to ref conversion
This commit is contained in:
@@ -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())) {
|
||||
|
Reference in New Issue
Block a user