Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-10-31 12:58:45 +0100
committerMartin Hořeňovský2021-10-31 12:59:00 +0100
commit2520ad4b6e0dfacbbdf802f952495532361ccb02 (patch)
tree1b7e0906454ebdb60ab7bbf0bd95c237e3199905
parente539e1cb52006074b4f6bf0887d2f52799abb1af (diff)
downloadcatch3-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.hpp4
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 );