diff options
| author | Martin Hořeňovský | 2021-10-31 12:58:45 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-10-31 12:59:00 +0100 |
| commit | 2520ad4b6e0dfacbbdf802f952495532361ccb02 (patch) | |
| tree | 1b7e0906454ebdb60ab7bbf0bd95c237e3199905 | |
| parent | e539e1cb52006074b4f6bf0887d2f52799abb1af (diff) | |
| download | catch3-2520ad4b6e0dfacbbdf802f952495532361ccb02.tar.gz | |
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`.
| -rw-r--r-- | src/catch2/internal/catch_textflow.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_textflow.hpp b/src/catch2/internal/catch_textflow.hpp index 074146c8..fdcf06bc 100644 --- a/src/catch2/internal/catch_textflow.hpp +++ b/src/catch2/internal/catch_textflow.hpp @@ -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 ); |