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

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSean Middleditch2020-08-18 01:34:47 -0700
committerMartin Hořeňovský2020-09-07 14:23:47 +0200
commit31d483124532184aefc9595903af7493c206b874 (patch)
treea8acde3177a120accb08b1953d721a9d4b1dd5a4 /src
parent08fb5cbab2f8cf59c6960da9d7b54e5841bfd097 (diff)
downloadcatch3-31d483124532184aefc9595903af7493c206b874.tar.gz
Support sentinel-based ranges in default stringify (#2004)
Diffstat (limited to 'src')
-rw-r--r--src/catch2/catch_tostring.hpp4
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) {