mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Weakened cast in span::iterator.
This commit is contained in:
parent
520c72d777
commit
0c1b6717c1
@ -286,8 +286,8 @@ public:
|
||||
constexpr span_iterator() : base_type() {}
|
||||
constexpr span_iterator(const Span* span, typename Span::index_type index) : base_type(span, index) {}
|
||||
|
||||
constexpr reference operator*() const { return reinterpret_cast<reference>(base_type::operator*()); }
|
||||
constexpr pointer operator->() const { return reinterpret_cast<pointer>(base_type::operator->()); }
|
||||
constexpr reference operator*() const { return const_cast<reference>(base_type::operator*()); }
|
||||
constexpr pointer operator->() const { return const_cast<pointer>(base_type::operator->()); }
|
||||
|
||||
constexpr span_iterator& operator++() noexcept { base_type::operator++(); return *this; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user