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
1 changed files with 2 additions and 2 deletions

View File

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