Support sentinel-based ranges in default stringify (#2004)
This commit is contained in:
1 parent
2b34b5c7d0
commit
284672cc84
8 files changed
+47
-11
No files matched your search
@@ -309,8 +309,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) {
|
||||
|
||||
Reference in new issue
Block a user