<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 2013-05-10 02:31, Chandler Carruth
wrote:<br>
</div>
<blockquote
cite="mid:CAGCO0KgBn=T4pbG7+ary0M1QzauUuMoFdAtNjTFui+NXL0USkg@mail.gmail.com"
type="cite">
<div dir="ltr">On Fri, May 10, 2013 at 2:16 AM, Marshall Clow <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:mclow@qualcomm.com" target="_blank">mclow@qualcomm.com</a>></span>
wrote:<br>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Author:
marshall<br>
Date: Thu May 9 19:16:10 2013<br>
New Revision: 181569<br>
<br>
URL: <a moz-do-not-send="true"
href="http://llvm.org/viewvc/llvm-project?rev=181569&view=rev"
target="_blank">http://llvm.org/viewvc/llvm-project?rev=181569&view=rev</a><br>
Log:<br>
Fix incorrect type usage; nice catch by Sebastian<br>
</blockquote>
<div><br>
</div>
<div style="">Test case please?</div>
<br>
</div>
</div>
</div>
</blockquote>
Hm, something like this?<br>
<br>
template <typename I><br>
struct counting_iterator {<br>
typedef I value_type;<br>
typedef I distance_type;<br>
<br>
// other iterator stuff<br>
};<br>
<br>
assert(!std::equal(counting_iterator<char>(0x00),
counting_iterator<char>(0x04),<br>
counting_iterator<int>(0x00),
counting_iterator<int>(0x104));<br>
<br>
That would assign the second distance to a char, which should wrap
around to make the sequences appear the same.<br>
<br>
Sebastian<br>
</body>
</html>