Return const_iterator from Column::begin/end const

This is what should normally happen, even if it does not change
anything given that `Column::const_iterator` is currently a typedef
for `Column::iterator`.
This commit is contained in:
Martin Hořeňovský 2021-10-31 12:58:45 +01:00
parent e539e1cb52
commit 2520ad4b6e

View File

@ -89,8 +89,8 @@ namespace Catch {
} }
size_t width() const { return m_width; } size_t width() const { return m_width; }
iterator begin() const { return iterator( *this ); } const_iterator begin() const { return const_iterator( *this ); }
iterator end() const { return { *this, iterator::EndTag{} }; } const_iterator end() const { return { *this, const_iterator::EndTag{} }; }
friend std::ostream& operator<<( std::ostream& os, friend std::ostream& operator<<( std::ostream& os,
Column const& col ); Column const& col );