remove brackets around this deref for span_iterator operators

This commit is contained in:
Jordan Maples [MSFT]
2020-02-05 14:36:34 -08:00
parent 7fcc142ffc
commit ff5f7973a2
+4 -4
View File
@@ -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;
}