File: c%2B%2B20-iterator.diff

package info (click to toggle)
openmsx 20.0%2Bdfsg-1.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 27,544 kB
  • sloc: cpp: 236,922; xml: 49,948; tcl: 15,056; python: 5,385; perl: 281; sh: 77; makefile: 53
file content (10 lines) | stat: -rw-r--r-- 283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
--- a/src/utils/view.hh
+++ b/src/utils/view.hh
@@ -206,6 +206,7 @@ public:
 	}
 
 	[[nodiscard]] constexpr friend difference_type operator-(const TransformIterator& x, const TransformIterator& y)
+	requires std::sized_sentinel_for<Iterator, Iterator>
 	{
 		return x.it - y.it;
 	}