diff options
| author | Sean Middleditch | 2020-08-18 01:34:47 -0700 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-09-07 14:23:47 +0200 |
| commit | 31d483124532184aefc9595903af7493c206b874 (patch) | |
| tree | a8acde3177a120accb08b1953d721a9d4b1dd5a4 /src/catch2 | |
| parent | 08fb5cbab2f8cf59c6960da9d7b54e5841bfd097 (diff) | |
| download | catch3-31d483124532184aefc9595903af7493c206b874.tar.gz | |
Support sentinel-based ranges in default stringify (#2004)
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/catch_tostring.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/catch_tostring.hpp b/src/catch2/catch_tostring.hpp index fb247555..0462bc6b 100644 --- a/src/catch2/catch_tostring.hpp +++ b/src/catch2/catch_tostring.hpp @@ -311,8 +311,8 @@ namespace Catch { #endif namespace Detail { - template<typename InputIterator> - std::string rangeToString(InputIterator first, InputIterator last) { + template<typename InputIterator, typename Sentinel = InputIterator> + std::string rangeToString(InputIterator first, Sentinel last) { ReusableStringStream rss; rss << "{ "; if (first != last) { |