From 795a4c3be7b45b9ded92cc83e4b0179ad7c58d54 Mon Sep 17 00:00:00 2001 From: Ferdinand Bachmann Date: Wed, 10 Mar 2021 13:46:07 +0100 Subject: [PATCH] ring_buffer_iterator: whitespace changes --- include/ring-buffer-iterator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ring-buffer-iterator.h b/include/ring-buffer-iterator.h index f17c977..9e207a2 100644 --- a/include/ring-buffer-iterator.h +++ b/include/ring-buffer-iterator.h @@ -90,7 +90,7 @@ public: return index >= other.index; } - CONSTEXPR friend ring_buffer_iterator operator+( difference_type n, const ring_buffer_iterator& it) NOEXCEPT { + CONSTEXPR friend ring_buffer_iterator operator+(difference_type n, const ring_buffer_iterator& it) NOEXCEPT { return it + n; } CONSTEXPR friend void swap(ring_buffer_iterator& a, ring_buffer_iterator& b) COND_NOEXCEPT(noexcept(std::swap(a.container, b.container))) { @@ -186,7 +186,7 @@ public: return index >= other.index; } - CONSTEXPR friend ring_buffer_const_iterator operator+( difference_type n, const ring_buffer_const_iterator& it) NOEXCEPT { + CONSTEXPR friend ring_buffer_const_iterator operator+(difference_type n, const ring_buffer_const_iterator& it) NOEXCEPT { return it + n; } CONSTEXPR friend void swap(ring_buffer_const_iterator& a, ring_buffer_const_iterator& b) COND_NOEXCEPT(noexcept(std::swap(a.container, b.container))) {