From ff5f7973a28fc360bfd34af90486d784e48bc384 Mon Sep 17 00:00:00 2001 From: "Jordan Maples [MSFT]" <49793787+JordanMaples@users.noreply.github.com> Date: Wed, 5 Feb 2020 14:36:34 -0800 Subject: [PATCH] remove brackets around this deref for span_iterator operators --- include/gsl/span | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/gsl/span b/include/gsl/span index f8dd4a0..ecbca5d 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -163,7 +163,7 @@ namespace details constexpr span_iterator operator++(int) noexcept { - auto ret{*this}; + span_iterator ret = *this; ++*this; return ret; } @@ -178,7 +178,7 @@ namespace details constexpr span_iterator operator--(int) noexcept { - auto ret{*this}; + span_iterator ret = *this; --*this; return ret; } @@ -194,7 +194,7 @@ namespace details constexpr span_iterator operator+(const difference_type n) const noexcept { - auto ret{*this}; + span_iterator ret = *this; return ret += n; } @@ -215,7 +215,7 @@ namespace details constexpr span_iterator operator-(const difference_type n) const noexcept { - auto ret{*this}; + span_iterator ret = *this; return ret -= n; }